Method: Ufo::Stack#exit_with_message

Defined in:
lib/ufo/stack.rb

#exit_with_message(stack) ⇒ Object



175
176
177
178
179
180
181
# File 'lib/ufo/stack.rb', line 175

def exit_with_message(stack)
  region = `aws configure get region`.strip rescue "us-east-1"
  url = "https://console.aws.amazon.com/cloudformation/home?region=#{region}#/stacks"
  puts "The stack is not in an updateable state: #{stack.stack_status.color(:yellow)}."
  puts "Here's the CloudFormation url to check for more details #{url}"
  exit 1
end