Method: Ufo::Stack#perform

Defined in:
lib/ufo/stack.rb

#perform(action) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/ufo/stack.rb', line 61

def perform(action)
  puts "#{action[0..-2].capitalize}ing stack #{@stack_name.color(:green)}..."
  # Example: cloudformation.send("update_stack", stack_options)
  cloudformation.send("#{action}_stack", stack_options)
rescue Aws::CloudFormation::Errors::ValidationError => e
  handle_stack_error(e)
end