Class: ForemanTasksCore::BatchAction
- Inherits:
-
Dynflow::Action
- Object
- Dynflow::Action
- ForemanTasksCore::BatchAction
- Includes:
- Dynflow::Action::WithPollingSubPlans, Dynflow::Action::WithSubPlans
- Defined in:
- lib/foreman_tasks_core/batch_action.rb
Direct Known Subclasses
Instance Method Summary collapse
- #initiate ⇒ Object
-
#plan(launcher, input_hash) ⇒ Object
{ task_id => { :action_class => Klass, :input => input } }.
- #rescue_strategy ⇒ Object
Instance Method Details
#initiate ⇒ Object
12 13 14 15 |
# File 'lib/foreman_tasks_core/batch_action.rb', line 12 def initiate ping suspended_action wait_for_sub_plans sub_plans end |
#plan(launcher, input_hash) ⇒ Object
{ task_id => { :action_class => Klass, :input => input } }
7 8 9 10 |
# File 'lib/foreman_tasks_core/batch_action.rb', line 7 def plan(launcher, input_hash) launcher.launch_children(self, input_hash) plan_self end |
#rescue_strategy ⇒ Object
17 18 19 |
# File 'lib/foreman_tasks_core/batch_action.rb', line 17 def rescue_strategy Dynflow::Action::Rescue::Fail end |