class Proxy::Dynflow::Action::SingleRunnerBatch

Public Instance Methods

check_for_errors!(optional = true) click to toggle source
Calls superclass method
# File lib/smart_proxy_dynflow/action/single_runner_batch.rb, line 12
def check_for_errors!(optional = true)
  super unless optional
end
finalize() click to toggle source
# File lib/smart_proxy_dynflow/action/single_runner_batch.rb, line 22
def finalize
  output.delete(:results)
  check_for_errors!
end
on_finish() click to toggle source
# File lib/smart_proxy_dynflow/action/single_runner_batch.rb, line 16
def on_finish
  output[:results] = sub_plans.map(&:entry_action).reduce({}) do |acc, cur|
    acc.merge(cur.execution_plan_id => cur.output)
  end
end
plan(launcher, input_hash) click to toggle source
Calls superclass method Proxy::Dynflow::Action::Batch#plan
# File lib/smart_proxy_dynflow/action/single_runner_batch.rb, line 7
def plan(launcher, input_hash)
  results = super
  plan_action BatchCallback, input_hash, results.output[:results]
end
rescue_strategy_for_self() click to toggle source
# File lib/smart_proxy_dynflow/action/single_runner_batch.rb, line 27
def rescue_strategy_for_self
  Dynflow::Action::Rescue::Skip
end