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