lib/simple_deploy/cli.rb in simple_deploy-0.3.4 vs lib/simple_deploy/cli.rb in simple_deploy-0.3.5
- old
+ new
@@ -13,10 +13,11 @@
simple_deploy environments
simple_deploy list -e ENVIRONMENT
simple_deploy create -n STACK_NAME -e ENVIRONMENT -a ATTRIBUTES -t TEMPLATE_PATH
simple_deploy update -n STACK_NAME -e ENVIRONMENT -a ATTRIBUTES
simple_deploy deploy -n STACK_NAME -e ENVIRONMENT
+simple_deploy ssh -n STACK_NAME -e ENVIRONMENT
simple_deploy destroy -n STACK_NAME -e ENVIRONMENT
simple_deploy instances -n STACK_NAME -e ENVIRONMENT
simple_deploy status -n STACK_NAME -e ENVIRONMENT
simple_deploy attributes -n STACK_NAME -e ENVIRONMENT
simple_deploy events -n STACK_NAME -e ENVIRONMENT
@@ -104,11 +105,12 @@
@logger = SimpleDeployLogger.new
case @cmd
when 'create', 'delete', 'deploy', 'destroy', 'instances',
'status', 'attributes', 'events', 'resources',
- 'outputs', 'template', 'update', 'parameters'
+ 'outputs', 'template', 'update', 'parameters',
+ 'ssh'
@stack = Stack.new :environment => @opts[:environment],
:name => @opts[:name],
:config => @config,
:logger => @logger
@@ -137,9 +139,11 @@
puts @stacks
when 'template'
jj @stack.template
when 'outputs', 'resources', 'status', 'parameters'
puts (@stack.send @cmd.to_sym).to_yaml
+ when 'ssh'
+ puts @stack.send @cmd.to_sym
when 'events'
puts (@stack.events @opts[:limit]).to_yaml
else
puts "Unknown command. Use -h for help."
end