Class: Aws::CloudFormation::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/extensions/cloudformation.rb

Instance Method Summary collapse

Instance Method Details

#wait_forever(state, stack_name) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/aws/extensions/cloudformation.rb', line 5

def wait_forever(state, stack_name)
  wait_until(state, stack_name) do |w|
    # disable max attempts
    w.max_attempts = nil
    w.before_wait do |attempts, response|
      yield attempts, response if block_given?
    end
  end
end