class Net::SCP
def upload(local, remote, options={}, &progress)
channel = scp.upload("/local/path", "/remote/path")
the Net::SSH event loop until the channel's #active? method returns false.
you can either call the #wait method on the channel, or otherwise run
object that will support the upload. To wait for the upload to finish,
This method will return immediately, returning the Net::SSH::Connection::Channel
of decreasing interactivity.
to 2048. Changing this value may improve throughput at the expense
* :chunk_size - the size of each "chunk" that should be sent. Defaults
end (useful for debugging).
* :verbose - the process should result in verbose output on the server
* :preserve - the atime and mtime of the file should be preserved.
server.
should be uploaded to a new directory named +remote+ on the remote
* :recursive - the +local+ parameter refers to a local directory, which
The following options are recognized:
Inititiate a synchronous (non-blocking) upload from +local+ to +remote+.
def upload(local, remote, options={}, &progress) start_command(:upload, local, remote, options, &progress) end