Class: SimpleDeploy::Stack::SSH
- Inherits:
-
Object
- Object
- SimpleDeploy::Stack::SSH
- Defined in:
- lib/simple_deploy/stack/ssh.rb
Instance Method Summary collapse
- #execute(args) ⇒ Object
-
#initialize(args) ⇒ SSH
constructor
A new instance of SSH.
Constructor Details
#initialize(args) ⇒ SSH
Returns a new instance of SSH.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/simple_deploy/stack/ssh.rb', line 8 def initialize(args) @config = args[:config] @instances = args[:instances] @environment = args[:environment] @ssh_user = args[:ssh_user] @ssh_key = args[:ssh_key] @stack = args[:stack] @name = args[:name] @logger = @config.logger @region = @config.region @environment end |
Instance Method Details
#execute(args) ⇒ Object
20 21 22 23 |
# File 'lib/simple_deploy/stack/ssh.rb', line 20 def execute(args) create_execute_task args @task.execute end |