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_base64, #fn_getatt, #fn_join, #fn_lookup, #fn_map, #fn_ref, #fn_select, #intrinsic

Methods included from Logging

configure_logger_for, #logger, logger_for

Instance Method Details

#on_workitemObject



300
301
302
303
304
305
306
307
308
309
310
311
312
313
# File 'lib/stackmate/participants/cloudstack.rb', line 300

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

  logger.debug "Output Done"
  reply
end