Class: PuppetDebugger::InputResponders::Datatypes
- Inherits:
-
PuppetDebugger::InputResponderPlugin
- Object
- PuppetDebugger::InputResponderPlugin
- PuppetDebugger::InputResponders::Datatypes
- Defined in:
- lib/plugins/puppet-debugger/input_responders/datatypes.rb
Constant Summary collapse
- COMMAND_WORDS =
%w(datatypes)- SUMMARY =
'List all the datatypes 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 13 |
# File 'lib/plugins/puppet-debugger/input_responders/datatypes.rb', line 9 def run(args = []) types = debugger.all_data_types return types.sort.ai if types.instance_of?(Array) types end |