lib/cloudstack-cli/commands/offering.rb in cloudstack-cli-0.3.10 vs lib/cloudstack-cli/commands/offering.rb in cloudstack-cli-0.3.11

- old
+ new

@@ -1,8 +1,8 @@ class Offering < CloudstackCli::Base - desc 'list', 'list compute offerings' + desc 'offering list', 'list compute offerings' option :domain def list offerings = client.list_service_offerings(options[:domain]) if offerings.size < 1 puts "No offerings found." @@ -18,11 +18,11 @@ end print_table table 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 @@ -37,10 +37,10 @@ def delete(id) puts "OK" if client.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 offerings = client.list_service_offerings(options[:domain]) sortkey = -1 offerings.group_by{|o| o["domain"]}.each_value do |offers| offers.sort { \ No newline at end of file