Class: UnimatrixCLI::Iris::StreamEncoder::CreateCommand
- Defined in:
- lib/unimatrix_cli/iris/stream_encoder/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
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/unimatrix_cli/iris/stream_encoder/create_command.rb', line 12 def execute stream_encoder = create_stream_encoder if validate( stream_encoder, 'Iris::StreamEncoder' ) write( message: "StreamEncoder uuid: #{ stream_encoder.uuid }" ) else write( message: "Error creating stream_encoder: #{ stream_encoder.inspect }", error: true ) end end |