Class: UnimatrixCLI::Iris::StreamOutput::CreateCommand
- Defined in:
- lib/unimatrix_cli/iris/stream_output/create_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
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/unimatrix_cli/iris/stream_output/create_command.rb', line 16 def execute stream_output = create_stream_output if validate( stream_output, 'Iris::StreamOutput' ) write( message: "StreamOutput uuid: #{ stream_output.uuid }" ) else write( message: "Error creating stream_output: #{ stream_output.inspect }", error: true ) end end |