lib/cloudstack-cli/commands/configuration.rb in cloudstack-cli-0.15.1 vs lib/cloudstack-cli/commands/configuration.rb in cloudstack-cli-1.0.0.rc1

- old
+ new

@@ -1,26 +1,25 @@ class Configuration < CloudstackCli::Base desc 'list', 'list configurations' - option :name - option :category - option :keyword + option :name, desc: "lists configuration by name" + option :category, desc: "lists configurations by category" + option :keyword, desc: "lists configuration by keyword" def list configs = client.list_configurations(options) if configs.size < 1 say "No configuration found." else - table = [%w(Name Scope Category Value)] + table = [%w(Name Category Value)] configs.each do |config| table << [ config['name'], - config['scope'], config['category'], config['value'] ] end print_table table say "Total number of configurations: #{configs.size}" end end -end \ No newline at end of file +end