Method: Stackup::Stack#initialize

Defined in:
lib/stackup/stack.rb

#initialize(name, client = {}, options = {}) ⇒ Stack

Returns a new instance of Stack.



20
21
22
23
24
25
26
27
28
29
# File 'lib/stackup/stack.rb', line 20

def initialize(name, client = {}, options = {})
  client     = Aws::CloudFormation::Client.new(client) if client.is_a?(Hash)
  @name      = name
  @cf_client = client
  @wait      = true
  options.each do |key, value|
    public_send("#{key}=", value)
  end
  @wait_poll_interval ||= DEFAULT_WAIT_POLL_INTERVAL
end