class Tataru::Instructions::CheckUpdateInstruction
check that update is completed
Public Class Methods
new()
click to toggle source
Calls superclass method
Tataru::Instructions::CheckInstruction::new
# File lib/tataru/instructions/check_update_instruction.rb, line 7 def initialize super :update end
Public Instance Methods
after_complete()
click to toggle source
# File lib/tataru/instructions/check_update_instruction.rb, line 11 def after_complete memory.hash[:outputs][resource_name] = outputs end
outputs()
click to toggle source
# File lib/tataru/instructions/check_update_instruction.rb, line 15 def outputs return {} unless desc.output_fields.count resource_class = desc.resource_class resource = resource_class.new(memory.hash[:remote_ids][resource_name]) o = resource.outputs raise "Output for '#{resource_name}' is not a hash" unless o.is_a? Hash resource.outputs end