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

- old
+ new

@@ -1,8 +1,8 @@ class PortRule < CloudstackCli::Base - desc "port_rule create SERVER", "create portforwarding rules" + desc "create SERVER", "create portforwarding rules" option :rules, type: :array, required: true, desc: "Port Forwarding Rules [public_ip]:port ...", aliases: '-r' option :network, required: true, aliases: '-n' @@ -33,10 +33,10 @@ client.create_port_forwarding_rule(ip_addr["id"], port, 'TCP', port, server["id"]) puts end end - desc "port_rule list", "list portforwarding rules" + desc "list", "list portforwarding rules" option :project def list project_id = find_project['id'] if options[:project] rules = client.list_port_forwarding_rules(ip_address_id=nil, project_id) if rules.size < 1 \ No newline at end of file