class AWS::CloudFormation::StackEvent

Attributes

detail[RW]
live[RW]
op[RW]

Public Instance Methods

error() click to toggle source
# File lib/aws/with-stacco-patches.rb, line 52
def error
  self.resource_status_reason if (self.resource_status_reason and self.resource_status_reason !~ / Initiated$/)
end
operation() click to toggle source
# File lib/aws/with-stacco-patches.rb, line 37
def operation
  self.resource_status.split('_', 2).first
end
status() click to toggle source
# File lib/aws/with-stacco-patches.rb, line 45
def status
  stat = self.resource_status.split('_', 2).last
  return "started" if (self.resource_type == "AWS::CloudFormation::Stack" and stat == "IN_PROGRESS")
  return "WORKING" if stat == "IN_PROGRESS"
  stat
end