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

- old
+ new

@@ -1,13 +1,13 @@ class IpAddress < CloudstackCli::Base - desc "release ID", "release public IP address" + desc "ip_address release ID", "release public IP address" def release(id) say("OK", :green) if client.disassociate_ip_address(id) end - desc "assign NETWORK", "assign a public IP address" + desc "ip_address assign NETWORK", "assign a public IP address" option :project def assign(network) project = find_project if options[:project] unless network = client.get_network(network, project ? project["id"] : nil) error "Network #{network} not found." @@ -16,10 +16,10 @@ ip = client.associate_ip_address(network["id"]) puts say ip['ipaddress'] end - desc "list", "list public IP address" + desc "ip_address list", "list public IP address" option :project option :account option :listall def list table = [["Address", "Account", "Zone"]] \ No newline at end of file