Class: StackMate::CloudStackOutput

Inherits:
Ruote::Participant
  • Object
show all
Includes:
Intrinsic, Logging
Defined in:
lib/stackmate/participants/cloudstack.rb

Instance Method Summary collapse

Methods included from Intrinsic

#fn_getatt, #fn_join, #fn_ref, #fn_select, #intrinsic

Methods included from Logging

configure_logger_for, #logger, logger_for

Instance Method Details

#on_workitemObject



218
219
220
221
222
223
224
225
226
227
228
229
# File 'lib/stackmate/participants/cloudstack.rb', line 218

def on_workitem
  logger.debug "Entering #{participant_name} "
  outputs = workitem.fields['Outputs']
  outputs.each do |key, val|
    v = val['Value']
    constructed_value = intrinsic(v, workitem)
    val['Value'] = constructed_value
    logger.debug "Output: key = #{key}, value = #{constructed_value} descr = #{val['Description']}"
  end
  logger.debug "Output Done"
  reply
end