Sha256: 62abd873e36db932e25cd3c5c50ab03e3e4793e4306e4e726aebe260e69f125c
Contents?: true
Size: 687 Bytes
Versions: 5
Compression:
Stored size: 687 Bytes
Contents
require 'bora/cfn/status' class Bora module Cfn class StackStatus DOES_NOT_EXIST_MESSAGE = 'Stack does not exist'.freeze def initialize(underlying_stack) @stack = underlying_stack @status = Status.new(@stack.stack_status) if @stack 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 DOES_NOT_EXIST_MESSAGE end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems