# File lib/aeolus_cli/command/config_parser.rb, line 290 def list # TODO: Instantiate and call object matching command type, for example: # l = ListCommand.new(@options) # Each Command will call it's own internal method depending on the contents of the hash. # For the list example above, that object would call a method 'images' based on the item # @options[:subcommand] being :images, so internally that class may do something like: # self.send(@options[:subcommand]) if @options[:subcommand].nil? # TODO: Pull out Print Usage into seporate method, and print puts "Could not find options for list, run `./aeolus-image list --help` for usage instructions" exit(1) else list_command = ListCommand.new(@options) list_command.send(@options[:subcommand]) end end