bolt-modules/boltlib/lib/puppet/functions/file_upload.rb in bolt-0.16.4 vs bolt-modules/boltlib/lib/puppet/functions/file_upload.rb in bolt-0.17.0

- old
+ new

@@ -1,13 +1,13 @@ +require 'bolt/error' + # Uploads the given file or directory to the given set of targets and returns the result from each upload. # # * This function does nothing if the list of targets is empty. # * It is possible to run on the target 'localhost' # * A target is a String with a targets's hostname or a Target. # * The returned value contains information about the result per target. # -require 'bolt/error' - Puppet::Functions.create_function(:file_upload, Puppet::Functions::InternalFunction) do dispatch :file_upload do scope_param param 'String[1]', :source param 'String[1]', :destination