lib/ec2/host/cli.rb in ec2-host-0.2.4 vs lib/ec2/host/cli.rb in ec2-host-0.3.0
- old
+ new
@@ -19,11 +19,13 @@
puts "error: #{msg}" if msg
exit 1
end
end
- opts = {}
+ opts = {
+ state: ["running"]
+ }
op.on('--hostname one,two,three', Array, "name or private_dns_name") {|v|
opts[:hostname] = v
}
op.on('-r', '--role one,two,three', Array, "role") {|v|
@@ -39,10 +41,10 @@
opts[:role3] = v
}
op.on('--instance-id one,two,three', Array, "instance_id") {|v|
opts[:instance_id] = v
}
- op.on('--state one,two,three', Array, "state") {|v|
+ op.on('--state one,two,three', Array, "instance state (default: running)") {|v|
opts[:state] = v
}
op.on('--monitoring one,two,three', Array, "monitoring") {|v|
opts[:monitoring] = v
}