Method: LonoCfn::Base#stack_status

Defined in:
lib/lono_cfn/base.rb

#stack_status(stack_name) ⇒ Object



115
116
117
118
119
120
121
# File 'lib/lono_cfn/base.rb', line 115

def stack_status(stack_name)
  return true if testing_update?
  return false if @options[:noop]

  resp = cfn.describe_stacks(stack_name: stack_name)
  status = resp.stacks[0].stack_status
end