lib/cloudstack-cli/cli.rb in cloudstack-cli-0.3.1 vs lib/cloudstack-cli/cli.rb in cloudstack-cli-0.3.2

- old
+ new

@@ -43,11 +43,10 @@ if File.exists? file begin old_config = YAML::load(IO.read(file)) rescue error "Can't load configuration from file #{config_file}." - error "To create a new configuration file run \"cs setup\"." exit 1 end say "Warning: #{file} already exists.", :red exit unless yes?("Do you want to merge your settings? [y/N]", :red) config = old_config.merge(config) @@ -71,10 +70,16 @@ end desc "zone SUBCOMMAND ...ARGS", "Manage zones" subcommand "zone", Zone + desc "pod SUBCOMMAND ...ARGS", "List pods" + subcommand "pod", Pod + + desc "cluster SUBCOMMAND ...ARGS", "List clusters" + subcommand "cluster", Cluster + desc "project SUBCOMMAND ...ARGS", "Manage servers" subcommand "project", Project desc "server SUBCOMMAND ...ARGS", "Manage servers" subcommand "server", Server @@ -104,24 +109,36 @@ subcommand "router", Router desc "volume SUBCOMMAND ...ARGS", "Manage volumes" subcommand "volume", Volume + desc "snapshot SUBCOMMAND ...ARGS", "Manage snapshots" + subcommand "snapshot", Snapshot + desc "stack SUBCOMMAND ...ARGS", "Manage stacks" subcommand "stack", Stack desc "account SUBCOMMAND ...ARGS", "Manage accounts" subcommand "account", Account + desc "user SUBCOMMAND ...ARGS", "Manage users" + subcommand "user", User + desc "domain SUBCOMMAND ...ARGS", "Manage domains" subcommand "domain", Domain desc "ip_address SUBCOMMAND ...ARGS", "Manage ip addresses" subcommand "ip_address", IpAddress desc "capacity SUBCOMMAND ...ARGS", "Lists all the system wide capacities" subcommand "capacity", Capacity - desc "port_rules SUBCOMMAND ...ARGS", "Manage portforwarding rules" + desc "port_rule SUBCOMMAND ...ARGS", "Manage portforwarding rules" subcommand "port_rule", PortRule + + desc "job SUBCOMMAND ...ARGS", "Display async jobs" + subcommand "job", Job + + desc "ssh_key_pair SUBCOMMAND ...ARGS", "Manage ssh key pairs" + subcommand "ssh_key_pair", SshKeyPair end end \ No newline at end of file