lib/simple_deploy/cli/deploy.rb in simple_deploy-0.7.8 vs lib/simple_deploy/cli/deploy.rb in simple_deploy-0.8.0

- old
+ new

@@ -28,15 +28,16 @@ Example 2: Overriding them in your shell environment (bash shell used in the example). export SIMPLE_DEPLOY_SSH_USER=fred export SIMPLE_DEPLOY_SSH_KEY=$HOME/.ssh/id_dsa simple_deploy deploy -n STACK_NAME -n STACK_NAME -e ENVIRONMENT -Using Internal IP for SSH: +Using Internal / External IP for SSH: -Simple deploy defaults to using the public IP when ssh'ng to stacks. This option instructs it -to use the private IP, which is needed when ssh'ng from one stack to another. +simple_deploy defaults to using the public IP when ssh'ng to stacks in classic, or the private IP when in a VPC. +The internal or external flag forces simple_deploy to use the given IP address. + simple_deploy deploy -n STACK_NAME -n STACK_NAME -e ENVIRONMENT -i EOS opt :help, "Display Help" opt :attributes, "= seperated attribute and it's value", :type => :string, @@ -46,10 +47,11 @@ opt :log_level, "Log level: debug, info, warn, error", :type => :string, :default => 'info' opt :name, "Stack name(s) of stack to deploy", :type => :string, :multi => true opt :quiet, "Quiet, do not send notifications" + opt :external, "Use external IP for ssh commands" opt :internal, "Use internal IP for ssh commands" end valid_options? :provided => @opts, :required => [:environment, :name] @@ -63,9 +65,10 @@ notifier = Notifier.new :stack_name => name, :environment => @opts[:environment] stack = Stack.new :name => name, :environment => @opts[:environment], + :external => @opts[:external], :internal => @opts[:internal] proceed = true if new_attributes.any?