lib/bolt/transport/base.rb
# Runs the given task on a batch of targets with variable parameters.
#
# The default implementation only supports batches of size 1 and will fail otherwise.
#
# Transports may override this method to implment their own batch processing.
Runs the given task on a batch of targets with variable parameters.
The default implementation only supports batches of size 1 and will fail otherwise.

Transports may override this method to implment their own batch processing.
Runs the given task on a batch of targets with variable parameters . The default implementation only supports batches of size 1 and will fail otherwise . Transports may override this method to implment their own batch processing .
def batch_task_with(targets, task, target_mapping, options = {}, position = [], &callback)
        assert_batch_size_one("batch_task_with()", targets)
        target = targets.first
        arguments = target_mapping[target]
        with_events(target, callback, 'task', position) do
          @logger.debug { "Running task '#{task.name}' on #{target.safe_name} with '#{arguments.to_json}'" }
          run_task(target, task, arguments, options, position)
        end
      end
def batch_task_with ( targets , task , target_mapping , options = { } , position = [ ] , & callback ) assert_batch_size_one ( "batch_task_with()" , targets ) target = targets . first arguments = target_mapping [ target ] with_events ( target , callback , 'task' , position ) do @logger . debug { "Running task '#{task.name}' on #{target.safe_name} with '#{arguments.to_json}'" } run_task ( target , task , arguments , options , position ) end end
Runs the given task on a batch of targets with variable parameters.
Runs the given task on a batch of targets with variable parameters .
targets
<not_specific>
task
<not_specific>
target_mapping
<not_specific>
options
<not_specific>
position
<not_specific>
callback
<not_specific>