lib/gaptool-client.rb in gaptool-client-0.5.7 vs lib/gaptool-client.rb in gaptool-client-0.5.8

- old
+ new

@@ -95,21 +95,21 @@ module Gaptool class InitCommand < Clamp::Command option ["-r", "--role"], "ROLE", "Resource name to initilize", :required => true option ["-e", "--environment"], "ENVIRONMENT", "Which environment, e.g. production", :required => true - option ["-z", "--zone"], "ZONE", "AWS availability zone to put node in", :required => true + option ["-z", "--zone"], "ZONE", "AWS availability zone to put node in", :default => 'us-west-2c' option ["-t", "--type"], "TYPE", "Type of instance, e.g. m1.large", :required => true option ["-m", "--mirror"], "GIGABYTES", "Gigs for raid mirror, must be set up on each node", :required => false option ["-s", "--security-group"], "SECURITY_GROUP", "Security group name. Defaults to $role-$environment", required: false def execute $api.addnode(zone, type, role, environment, mirror, security_group) end end class TerminateCommand < Clamp::Command - option ["-z", "--zone"], "ZONE", "AWS availability zone to put node in", :required => true option ["-i", "--instance"], "INSTANCE", "Instance ID, e.g. i-12345678", :required => true + option ["-z", "--zone"], "ZONE", "AWS availability zone of the node", :default => "us-west-2" def execute $api.terminatenode(instance, zone) end end