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 = {}, &callback)
        assert_batch_size_one("batch_command()", targets)
        target = targets.first
        with_events(target, callback, 'command') do
          @logger.debug("Running command '#{command}' on #{target.safe_name}")
          run_command(target, command, options)
        end
      end
def batch_command ( targets , command , options = { } , & callback ) assert_batch_size_one ( "batch_command()" , targets ) target = targets . first with_events ( target , callback , 'command' ) do @logger . debug ( "Running command '#{command}' on #{target.safe_name}" ) run_command ( target , command , options ) end end
Runs the given command on a batch of targets.
Runs the given command on a batch of targets .
targets
command
options
callback