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