Class: Proxy::Dynflow::Action::BatchCallback

Inherits:
Dynflow::Action
  • Object
show all
Defined in:
lib/smart_proxy_dynflow/action/batch_callback.rb

Instance Method Summary collapse

Instance Method Details

#plan(input_hash, results) ⇒ Object



3
4
5
# File 'lib/smart_proxy_dynflow/action/batch_callback.rb', line 3

def plan(input_hash, results)
  plan_self :targets => input_hash, :results => results
end

#runObject



7
8
9
10
# File 'lib/smart_proxy_dynflow/action/batch_callback.rb', line 7

def run
  payload = format_payload(input['targets'], input['results'])
  Proxy::Dynflow::Callback::Request.new.callback({ :callbacks => payload }.to_json)
end