Class: Avm::Tools::Runner::Instance::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/tools/runner/instance/entry.rb

Instance Method Summary collapse

Instance Method Details

#debugObject



25
26
27
28
29
# File 'lib/avm/tools/runner/instance/entry.rb', line 25

def debug
  return unless parsed.debug?

  parsed.envvar_suffix.map { |entry_key| debug_entry(entry_key) }
end

#debug_entry(entry_key) ⇒ Object



31
32
33
34
35
36
37
38
# File 'lib/avm/tools/runner/instance/entry.rb', line 31

def debug_entry(entry_key)
  infov 'Entry key', entry_key
  e = instance.entry(entry_key)
  infov '  * Type', e.class
  infov '  * Full path', e.full_path
  infov '  * Found?', e.context_found?
  infov '  * Value', e.value
end

#output_contentObject



21
22
23
# File 'lib/avm/tools/runner/instance/entry.rb', line 21

def output_content
  parsed.envvar_suffix.map { |entry_key| "#{instance.entry(entry_key).value}\n" }.join
end

#runObject



16
17
18
19
# File 'lib/avm/tools/runner/instance/entry.rb', line 16

def run
  debug
  run_output
end