lib/cloudstack-cli/commands/offering.rb in cloudstack-cli-0.0.3 vs lib/cloudstack-cli/commands/offering.rb in cloudstack-cli-0.0.4

- old
+ new

@@ -1,9 +1,9 @@ class Offering < Thor include CommandLineReporter - desc 'list', 'list offerings by type [compute|network|storage]' + desc 'offering list', 'list offerings by type [compute|network|storage]' option :domain def list(type='compute') cs_cli = CloudstackCli::Helper.new(options[:config]) offerings = cs_cli.server_offerings(options[:domain]) @@ -35,11 +35,11 @@ end end end end - desc 'create NAME', 'create offering' + desc 'offering create NAME', 'create offering' option :cpunumber, required: true option :cpuspeed, required: true option :displaytext, required: true option :memory, required: true option :domain @@ -56,10 +56,10 @@ cs_cli = CloudstackCli::Helper.new(options[:config]) puts "OK" if cs_cli.delete_offering(id) end - desc 'sort', 'sort by cpu and memory grouped by domain' + desc 'offering sort', 'sort by cpu and memory grouped by domain' def sort cs_cli = CloudstackCli::Helper.new(options[:config]) offerings = cs_cli.server_offerings(options[:domain]) sortkey = -1 offerings.group_by{|o| o["domain"]}.each_value do |offers| \ No newline at end of file