class Rake::SshDirPublisher
SSH.
Publish an entire directory to an existing remote directory using
def initialize(host, remote_dir, local_dir)
def initialize(host, remote_dir, local_dir) @host = host @remote_dir = remote_dir @local_dir = local_dir end
def upload
def upload sh "scp", "-rq", "#{@local_dir}/*", "#{@host}:#{@remote_dir}" end