Class: ForemanTasksCore::BatchCallback
- Inherits:
-
Dynflow::Action
- Object
- Dynflow::Action
- ForemanTasksCore::BatchCallback
- Defined in:
- lib/foreman_tasks_core/batch_callback_action.rb
Instance Method Summary collapse
Instance Method Details
#plan(input_hash, results) ⇒ Object
3 4 5 |
# File 'lib/foreman_tasks_core/batch_callback_action.rb', line 3 def plan(input_hash, results) plan_self :targets => input_hash, :results => results end |
#run ⇒ Object
7 8 9 10 |
# File 'lib/foreman_tasks_core/batch_callback_action.rb', line 7 def run payload = format_payload(input['targets'], input['results']) SmartProxyDynflowCore::Callback::Request.new.callback({ :callbacks => payload }.to_json) end |