lib/cloudstack-cli/commands/port_rule.rb in cloudstack-cli-0.9.0 vs lib/cloudstack-cli/commands/port_rule.rb in cloudstack-cli-0.9.1

- old
+ new

@@ -1,13 +1,14 @@ class PortRule < CloudstackCli::Base - desc "create SERVER", "create portforwarding rules" + desc "create SERVER", "create portforwarding rules for a given server" option :rules, type: :array, required: true, desc: "Port Forwarding Rules [public_ip]:port ...", aliases: '-r' option :network, required: true, aliases: '-n' option :project + option :keyword, desc: "list by keyword" def create(server_name) projectid = find_project['id'] if options[:project] unless server = client.get_server(server_name, projectid) error "Server #{server_name} not found." exit 1 \ No newline at end of file