module Dynflow::Action::Cancellable

Constants

Abort
Cancel

Public Instance Methods

abort!() click to toggle source
# File lib/dynflow/action/cancellable.rb, line 22
def abort!
  cancel!
end
cancel!() click to toggle source
# File lib/dynflow/action/cancellable.rb, line 18
def cancel!
  raise NotImplementedError
end
run(event = nil) click to toggle source
Calls superclass method
# File lib/dynflow/action/cancellable.rb, line 7
def run(event = nil)
  case event
  when Cancel
    cancel!
  when Abort
    abort!
  else
    super event
  end
end