Class: PuppetDebugger::InputResponders::Functions
- Inherits:
-
PuppetDebugger::InputResponderPlugin
- Object
- PuppetDebugger::InputResponderPlugin
- PuppetDebugger::InputResponders::Functions
- Defined in:
- lib/plugins/puppet-debugger/input_responders/functions.rb
Constant Summary collapse
- COMMAND_WORDS =
%w(functions)
- SUMMARY =
'List all the functions available in the environment.'
- COMMAND_GROUP =
:environment
Instance Attribute Summary
Attributes inherited from PuppetDebugger::InputResponderPlugin
Instance Method Summary collapse
Methods inherited from PuppetDebugger::InputResponderPlugin
command_completion, command_group, command_words, details, execute, summary
Instance Method Details
#run(args = []) ⇒ Object
9 10 11 12 |
# File 'lib/plugins/puppet-debugger/input_responders/functions.rb', line 9 def run(args = []) filter = args.first || '' function_map.keys.sort.grep(/^#{Regexp.escape(filter)}/) end |