Class: Flor::StagedBasicTasker

Inherits:
BasicTasker show all
Defined in:
lib/flor/unit/taskers.rb

Overview

A BasicTasker with stages (pre / on / post)

Instance Attribute Summary

Attributes inherited from BasicTasker

#conf, #ganger, #message

Instance Method Summary collapse

Methods inherited from BasicTasker

#initialize

Constructor Details

This class inherits a constructor from Flor::BasicTasker

Instance Method Details

#call_detaskObject



149
150
151
152
153
# File 'lib/flor/unit/taskers.rb', line 149

def call_detask

  call_one_of(:pre_detask, :pre_cancel)
  call_one_of(:on_detask, :on_cancel, :detask, :cancel)
end

#call_taskObject



143
144
145
146
147
# File 'lib/flor/unit/taskers.rb', line 143

def call_task

  call_one_of(:pre_task)
  call_one_of(:on_task, :task)
end