lib/simple_deploy/cli/deploy.rb in simple_deploy-0.5.3 vs lib/simple_deploy/cli/deploy.rb in simple_deploy-0.5.4

- old
+ new

@@ -25,10 +25,17 @@ 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: + +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 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, :multi => true opt :environment, "Set the target environment", :type => :string @@ -36,10 +43,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 :internal, "Use internal IP for ssh commands" end CLI::Shared.valid_options? :provided => opts, :required => [:environment, :name] @@ -52,10 +60,11 @@ :environment => opts[:environment], :logger => logger stack = Stack.new :environment => opts[:environment], :name => name, - :logger => logger + :logger => logger, + :internal => opts[:internal] stack.update :force => opts[:force], :attributes => new_attributes if new_attributes.any? if stack.deploy opts[:force] notifier.send_deployment_complete_message unless opts[:quiet]