lib/bolt/application.rb
# Download a file from a list of targets to a directory on the controller.
#
# @param source [String] The path to the file on the targets.
# @param destination [String] The path to the directory on the controller.
# @param targets [Array[String]] The targets to run on.
# @return [Bolt::ResultSet]
#
Download a file from a list of targets to a directory on the controller.
Download a file from a list of targets to a directory on the controller .
def download_file(source, destination, targets)
      destination = File.expand_path(destination, Dir.pwd)
      targets     = inventory.get_targets(targets)
      with_benchmark do
        executor.download_file(targets, source, destination)
      end
    end
def download_file ( source , destination , targets ) destination = File . expand_path ( destination , Dir . pwd ) targets = inventory . get_targets ( targets ) with_benchmark do executor . download_file ( targets , source , destination ) end end
Download a file from a list of targets to a directory on the controller.
Download a file from a list of targets to a directory on the controller .
None
Bolt::ResultSet
source
The path to the file on the targets.
The path to the file on the targets .
destination
The path to the directory on the controller.
The path to the directory on the controller .
targets
] The targets to run on.
] The targets to run on .