Sha256: ad85058502c1088948d49b09df82567fe1f712924506278b2ce58e0d1dcc55a6
Contents?: true
Size: 685 Bytes
Versions: 10
Compression:
Stored size: 685 Bytes
Contents
require 'bora/status' module Bora class Event def initialize(event) @event = event @status = Status.new(@event.resource_status) end def method_missing(sym, *args, &block) @event.send(sym, *args, &block) end def status_success? @status.success? end def status_failure? @status.failure? end def status_complete? status_success? || status_failure? end def to_s status_reason = @event.resource_status_reason ? " - #{@event.resource_status_reason}" : "" "#{@event.timestamp.getlocal} - #{@event.resource_type} - #{@event.logical_resource_id} - #{@status}#{status_reason}" end end end
Version data entries
10 entries across 10 versions & 1 rubygems