Method: Jets::Cfn::Status#refresh_events

Defined in:
lib/jets/cfn/status.rb

#refresh_eventsObject

refreshes the loaded events in memory



129
130
131
132
133
134
135
136
137
138
# File 'lib/jets/cfn/status.rb', line 129

def refresh_events
  resp = cfn.describe_stack_events(stack_name: @stack_name)
  @events = resp["stack_events"]
rescue Aws::CloudFormation::Errors::ValidationError => e
  if e.message =~ /Stack .* does not exis/
    @stack_deletion_completed = true
  else
    raise
  end
end