Method: LonoCfn::Base#exist_unless_updatable

Defined in:
lib/lono_cfn/base.rb

#exist_unless_updatable(status) ⇒ Object



123
124
125
126
127
128
129
130
131
# File 'lib/lono_cfn/base.rb', line 123

def exist_unless_updatable(status)
  return true if testing_update?
  return false if @options[:noop]

  unless status =~ /_COMPLETE$/
    puts "Cannot create a change set for the stack because the #{@stack_name} is not in an updatable state.  Stack status: #{status}"
    quit(1)
  end
end