class Lono::Cfn::Rollback
Public Class Methods
new(stack)
click to toggle source
# File lib/lono/cfn/rollback.rb, line 6 def initialize(stack) @stack = stack end
Public Instance Methods
delete_stack()
click to toggle source
# File lib/lono/cfn/rollback.rb, line 10 def delete_stack stack = find_stack(@stack) if stack && rollback_complete?(stack) puts "Existing stack in ROLLBACK_COMPLETE state. Deleting stack before continuing." cfn.delete_stack(stack_name: @stack) status.wait status.reset true end end
status()
click to toggle source
# File lib/lono/cfn/rollback.rb, line 21 def status Lono::Cfn::Status.new(@stack) end