Class: UnimatrixCLI::Alchemist::VideoEncoder::CreateCommand
- Defined in:
- lib/unimatrix_cli/alchemist/video_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
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/unimatrix_cli/alchemist/video_encoder/create_command.rb', line 10 def execute video_encoder = create_video_encoder if validate( video_encoder, 'Alchemist::VideoEncoder' ) write( message: "VideoEncoder uuid: #{ video_encoder.uuid }" ) else write( message: "Error creating video_encoder: #{ video_encoder.inspect }", error: true ) end end |