Sha256: b1ac4848738f88536eed01fda7ecf898b2ea962e7a827f20a97d9c2dfe706f2e

Contents?: true

Size: 535 Bytes

Versions: 29

Compression:

Stored size: 535 Bytes

Contents

class Lono::Cfn
  class Rollback
    extend Memoist
    include Lono::AwsServices

    def initialize(stack)
      @stack = stack
    end

    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

    def status
      Lono::Cfn::Status.new(@stack)
    end
    memoize :status
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
lono-7.5.2 lib/lono/cfn/rollback.rb
lono-7.5.1 lib/lono/cfn/rollback.rb
lono-7.5.0 lib/lono/cfn/rollback.rb
lono-7.4.11 lib/lono/cfn/rollback.rb
lono-7.4.10 lib/lono/cfn/rollback.rb
lono-7.4.9 lib/lono/cfn/rollback.rb
lono-7.4.8 lib/lono/cfn/rollback.rb
lono-7.4.7 lib/lono/cfn/rollback.rb
lono-7.4.6 lib/lono/cfn/rollback.rb
lono-7.4.5 lib/lono/cfn/rollback.rb
lono-7.4.4 lib/lono/cfn/rollback.rb
lono-7.4.3 lib/lono/cfn/rollback.rb
lono-7.4.2 lib/lono/cfn/rollback.rb
lono-7.4.1 lib/lono/cfn/rollback.rb
lono-7.4.0 lib/lono/cfn/rollback.rb
lono-7.3.2 lib/lono/cfn/rollback.rb
lono-7.3.1 lib/lono/cfn/rollback.rb
lono-7.3.0 lib/lono/cfn/rollback.rb
lono-7.2.3 lib/lono/cfn/rollback.rb
lono-7.2.2 lib/lono/cfn/rollback.rb