lib/bolt/application.rb
# Upload a file from the controller to a list of targets.
#
# @param source [String] The path to the file on the controller.
# @param destination [String] The destination path on the targets.
# @param targets [Array[String]] The targets to run on.
# @return [Bolt::ResultSet]
#
Upload a file from the controller to a list of targets.
Upload a file from the controller to a list of targets .
def upload_file(source, destination, targets)
      source  = find_file(source)
      targets = inventory.get_targets(targets)
      Bolt::Util.validate_file('source file', source, true)
      with_benchmark do
        executor.upload_file(targets, source, destination)
      end
    end
def upload_file ( source , destination , targets ) source = find_file ( source ) targets = inventory . get_targets ( targets ) Bolt :: Util . validate_file ( 'source file' , source , true ) with_benchmark do executor . upload_file ( targets , source , destination ) end end
Upload a file from the controller to a list of targets.
Upload a file from the controller to a list of targets .
None
Bolt::ResultSet
source
The path to the file on the controller.
The path to the file on the controller .
destination
The destination path on the targets.
The destination path on the targets .
targets
] The targets to run on.
] The targets to run on .