class OpenStax::Aws::Stack::Event

Public Class Methods

new(aws_stack_event) click to toggle source
# File lib/openstax/aws/stack_event.rb, line 7
def initialize(aws_stack_event)
  @aws_stack_event = aws_stack_event
end

Public Instance Methods

failed?() click to toggle source
# File lib/openstax/aws/stack_event.rb, line 19
def failed?
  Status.failure_status_texts.include?(status_text)
end
status_reason() click to toggle source
# File lib/openstax/aws/stack_event.rb, line 15
def status_reason
  @aws_stack_event.data.resource_status_reason
end
status_text() click to toggle source
# File lib/openstax/aws/stack_event.rb, line 11
def status_text
  @aws_stack_event.data.resource_status
end
user_initiated?() click to toggle source
# File lib/openstax/aws/stack_event.rb, line 23
def user_initiated?
  status_reason == "User Initiated"
end