lib/simple_deploy/stack.rb in simple_deploy-0.2.6 vs lib/simple_deploy/stack.rb in simple_deploy-0.2.7
- old
+ new
@@ -31,14 +31,17 @@
:environment => @environment)
stack.update :attributes => saf.updated_attributes
end
def deploy
- deployment = Deployment.new :config => @config,
+ deployment = Deployment.new :config => @config,
:environment => @environment,
- :instances => instances,
- :attributes => attributes
+ :instances => instances,
+ :attributes => attributes,
+ :ssh_gateway => stack.attributes['ssh_gateway'],
+ :ssh_user => ENV['SIMPLE_DEPLOY_SSH_USER'],
+ :ssh_key => ENV['SIMPLE_DEPLOY_SSH_KEY']
deployment.execute
end
def destroy
stack.destroy
@@ -83,10 +86,11 @@
private
def stack
@stack ||= Stackster::Stack.new :environment => @environment,
:name => @name,
- :config => @config.environment(@environment)
+ :config => @config.environment(@environment),
+ :logger => @config.logger
end
end
end