Class: AWS::CloudFormation::StackEvent
- Inherits:
-
Object
- Object
- AWS::CloudFormation::StackEvent
- Defined in:
- lib/aws/with-stacco-patches.rb
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#live ⇒ Object
Returns the value of attribute live.
-
#op ⇒ Object
Returns the value of attribute op.
Instance Method Summary collapse
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail.
43 44 45 |
# File 'lib/aws/with-stacco-patches.rb', line 43 def detail @detail end |
#live ⇒ Object
Returns the value of attribute live.
41 42 43 |
# File 'lib/aws/with-stacco-patches.rb', line 41 def live @live end |
#op ⇒ Object
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
#error ⇒ Object
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 |
#operation ⇒ Object
37 38 39 |
# File 'lib/aws/with-stacco-patches.rb', line 37 def operation self.resource_status.split('_', 2).first end |
#status ⇒ Object
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 |