lib/kitchen/driver/ssh_base.rb
def transfer_path(locals, remote, connection)
        return if locals.nil? || Array(locals).empty?

        info("Transferring files to #{instance.to_str}")
        debug("TIMING: scp asynch upload (Kitchen::Driver::SSHBase)")
        elapsed = Benchmark.measure do
          transfer_path_async(locals, remote, connection)
        end
        delta = Util.duration(elapsed.real)
        debug("TIMING: scp async upload (Kitchen::Driver::SSHBase) took #{delta}")
        debug("Transfer complete")
      rescue SSHFailed, Net::SSH::Exception => ex
        raise ActionFailed, ex.message
      end
# Transfers one or more local paths over SSH.
#
# @param locals [Array<String>] array of local paths
# @param remote [String] remote destination path
# @param connection [Kitchen::SSH] an SSH connection
# @raise [ActionFailed] if an exception occurs
# @api private
Transfers one or more local paths over SSH.
Transfers one or more local paths over SSH .
def transfer_path(locals, remote, connection)
        return if locals.nil? || Array(locals).empty?
        info("Transferring files to #{instance.to_str}")
        debug("TIMING: scp asynch upload (Kitchen::Driver::SSHBase)")
        elapsed = Benchmark.measure do
          transfer_path_async(locals, remote, connection)
        end
        delta = Util.duration(elapsed.real)
        debug("TIMING: scp async upload (Kitchen::Driver::SSHBase) took #{delta}")
        debug("Transfer complete")
      rescue SSHFailed, Net::SSH::Exception => ex
        raise ActionFailed, ex.message
      end
def transfer_path ( locals , remote , connection ) return if locals . nil? || Array ( locals ) . empty? info ( "Transferring files to #{instance.to_str}" ) debug ( "TIMING: scp asynch upload (Kitchen::Driver::SSHBase)" ) elapsed = Benchmark . measure do transfer_path_async ( locals , remote , connection ) end delta = Util . duration ( elapsed . real ) debug ( "TIMING: scp async upload (Kitchen::Driver::SSHBase) took #{delta}" ) debug ( "Transfer complete" ) rescue SSHFailed , Net :: SSH :: Exception => ex raise ActionFailed , ex . message end
Transfers one or more local paths over SSH.
Transfers one or more local paths over SSH .
[ActionFailed] if an exception occurs
[ ActionFailed ] if an exception occurs
locals
array of local paths
array of local paths
remote
remote destination path
remote destination path
connection
an SSH connection
an SSH connection
api
None