module Clomp::CommonStates

Constants

FAILURE
PENDING
SUCCESS

Public Instance Methods

exception_raised?() click to toggle source

Any exception raise!

# File lib/clomp/common_states.rb, line 34
def exception_raised?
  @error && @error.present?
end
failure?() click to toggle source

Track#failure? successfully failure!

# File lib/clomp/common_states.rb, line 18
def failure?
  @state && @state == FAILURE
end
mark_as_failure!() click to toggle source

Track#mark_as_failure! flag the track as unsuccessful track

# File lib/clomp/common_states.rb, line 29
def mark_as_failure!
  @state && @state = FAILURE
end
mark_as_success!() click to toggle source

Track#mark_as_success! flag the track as successful track FIXME improve the flagship of track status! Should we use integer instead of string?

# File lib/clomp/common_states.rb, line 24
def mark_as_success!
  @state && @state = SUCCESS
end
pending?() click to toggle source

Track#pending? not executed tracks!

# File lib/clomp/common_states.rb, line 8
def pending?
  @state && @state == PENDING
end
success?() click to toggle source

Track#success? successfully executed!

# File lib/clomp/common_states.rb, line 13
def success?
  @state && @state == SUCCESS
end