Class: Dynflow::Action::Progress::Calculate
- Inherits:
-
Middleware
- Object
- Middleware
- Dynflow::Action::Progress::Calculate
- Defined in:
- lib/dynflow/action/progress.rb
Instance Method Summary collapse
Methods inherited from Middleware
#action, #finalize_phase, #initialize, #pass, #plan, #plan_phase
Constructor Details
This class inherits a constructor from Dynflow::Middleware
Instance Method Details
#finalize(*args) ⇒ Object
21 22 23 24 25 |
# File 'lib/dynflow/action/progress.rb', line 21 def finalize(*args) with_progress_calculation(*args) do [action.finalize_progress, action.finalize_progress_weight] end end |
#run(*args) ⇒ Object
15 16 17 18 19 |
# File 'lib/dynflow/action/progress.rb', line 15 def run(*args) with_progress_calculation(*args) do [action.run_progress, action.run_progress_weight] end end |