Class: SimpleDeploy::Stack::Execute

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_deploy/stack/execute.rb

Instance Method Summary collapse

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