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

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