class SshDirPublisher
:nodoc: all
SSH.
Publish an entire directory to an existing remote directory using
–
TODO: Remove in Rake 11, duplicated
def initialize(host, remote_dir, local_dir)
SSH.
Publish an entire directory to an existing remote directory using
--
TODO: Remove in Rake 11, duplicated
def initialize(host, remote_dir, local_dir) @host = host @remote_dir = remote_dir @local_dir = local_dir end
def upload
def upload run %{scp -rq #{@local_dir}/* #{@host}:#{@remote_dir}} end