Class: UnimatrixCLI::Alchemist::RenditionProfile::ListCommand
- Defined in:
- lib/unimatrix_cli/alchemist/rendition_profile/list_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/alchemist/rendition_profile/list_command.rb', line 10 def execute rendition_profiles = find_rendition_profiles if validate_collection( rendition_profiles, 'Alchemist::RenditionProfile' ) rendition_profiles.each do | rendition_profile | write( message: rendition_profile.uuid ) end else write( message: "No rendition_profiles found: #{ rendition_profiles.inspect }", error: true ) end end |