Class: PuppetDebugger::InputResponders::Facts

Inherits:
PuppetDebugger::InputResponderPlugin show all
Defined in:
lib/plugins/puppet-debugger/input_responders/facts.rb

Constant Summary collapse

COMMAND_WORDS =
%w(facts)
SUMMARY =
'List all the facts associated with the node.'
COMMAND_GROUP =
:node

Instance Attribute Summary

Attributes inherited from PuppetDebugger::InputResponderPlugin

#debugger

Instance Method Summary collapse

Methods inherited from PuppetDebugger::InputResponderPlugin

command_completion, command_group, command_words, details, execute, #modules_paths, #puppet_debugger_lib_dir, summary

Instance Method Details

#run(args = []) ⇒ Object



9
10
11
12
# File 'lib/plugins/puppet-debugger/input_responders/facts.rb', line 9

def run(args = [])
  variables = debugger.node.facts.values
  variables.ai(sort_keys: true, indent: -1)
end