Sha256: 92d7f8521de7813a538f217d0d20b0ed57bb65eca23602fd3be9ed006e35fe23
Contents?: true
Size: 649 Bytes
Versions: 4
Compression:
Stored size: 649 Bytes
Contents
require 'bora/cfn/status' class Bora module Cfn class StackStatus def initialize(underlying_stack) @stack = underlying_stack if @stack @status = Status.new(@stack.stack_status) end end def exists? @status && !@status.deleted? end def success? @status && @status.success? end def to_s if @stack status_reason = @stack.stack_status_reason ? " - #{@stack.stack_status_reason}" : "" "#{@stack.stack_name} - #{@status}#{status_reason}" else "Stack does not exist" end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bora-1.0.1 | lib/bora/cfn/stack_status.rb |
bora-1.0.0 | lib/bora/cfn/stack_status.rb |
bora-1.0.0.beta2 | lib/bora/cfn/stack_status.rb |
bora-1.0.0.beta1 | lib/bora/cfn/stack_status.rb |