Class: UnimatrixCLI::Zephyrus::Input::DescribeCommand
- Defined in:
- lib/unimatrix_cli/zephyrus/input/describe_command.rb
Instance Method Summary collapse
Methods inherited from Command
available_commands, descendants, #initialize, #read_file, #validate, #validate_collection, #write
Methods included from UnimatrixParser
Constructor Details
This class inherits a constructor from UnimatrixCLI::Command
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/unimatrix_cli/zephyrus/input/describe_command.rb', line 10 def execute input = find_input if validate( input, 'Zephyrus::Input' ) parse_object( input ).each do | response | write( message: response ) end else write( message: "Input could not be found: #{ input.inspect }", error: true ) end end |