Class: ForemanTasksCore::ShareableAction
- Inherits:
-
Dynflow::Action
- Object
- Dynflow::Action
- ForemanTasksCore::ShareableAction
- Defined in:
- lib/foreman_tasks_core/shareable_action.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#plan(input) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/foreman_tasks_core/shareable_action.rb', line 3 def plan(input) input = input.dup callback = input.delete('callback') if callback input[:task_id] = callback['task_id'] else input[:task_id] ||= SecureRandom.uuid end planned_action = plan_self(input) # code only applicable, when run with SmartProxyDynflowCore in place if on_proxy? && callback plan_action(SmartProxyDynflowCore::Callback::Action, callback, planned_action.output) end end |