Class: AWS::CloudFormation::StackEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/with-stacco-patches.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail.



43
44
45
# File 'lib/aws/with-stacco-patches.rb', line 43

def detail
  @detail
end

#liveObject

Returns the value of attribute live.



41
42
43
# File 'lib/aws/with-stacco-patches.rb', line 41

def live
  @live
end

#opObject

Returns the value of attribute op.



42
43
44
# File 'lib/aws/with-stacco-patches.rb', line 42

def op
  @op
end

Instance Method Details

#errorObject



52
53
54
# 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

#operationObject



37
38
39
# File 'lib/aws/with-stacco-patches.rb', line 37

def operation
  self.resource_status.split('_', 2).first
end

#statusObject



45
46
47
48
49
50
# 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