Method: Tataru::Runner#log_operation

Defined in:
lib/tataru/runner.rb

#log_operation(instr) ⇒ Object



20
21
22
23
24
25
26
27
28
29
# File 'lib/tataru/runner.rb', line 20

def log_operation(instr)
  return unless instr.is_a? Instructions::ResourceInstruction

  oplog << {
    operation: instr.class.name.underscore
                    .sub(%r{^tataru/instructions/}, '')
                    .sub(/_instruction$/, '').upcase.to_s,
    resource: (memory.hash[:temp][:resource_name]).to_s
  }
end