lib/cloudstack-cli/commands/capacity.rb in cloudstack-cli-0.4.3 vs lib/cloudstack-cli/commands/capacity.rb in cloudstack-cli-0.5.0

- old
+ new

@@ -10,11 +10,11 @@ 7 => {name: "VLAN"}, 8 => {name: "Direct Attached Public IP's"}, 9 => {name: "Local Storage", unit: "TB", divider: 1024.0**4} } - desc "capacity list", "list system capacity" + desc "list", "list system capacity" option :zone option :type, desc: "specify type, see types for a list of types" def list capacities = client.list_capacity(options) table = [] @@ -30,10 +30,10 @@ end table = table.sort {|a, b| [a[0], a[1]] <=> [b[0], b[1]]}.insert(0, header) print_table table end - desc "capacity types", "show capacity types" + desc "types", "show capacity types" def types table = [['type', 'name']] CAPACITY_TYPES.each_pair do |type, data| table << [type, data[:name]] end \ No newline at end of file