class Rake::SshDirPublisher

Publish an entire directory to an existing remote directory using SSH.

Public Class Methods

new(host, remote_dir, local_dir) click to toggle source
   # File lib/rake/contrib/sshpublisher.rb
 8 def initialize(host, remote_dir, local_dir)
 9   @host = host
10   @remote_dir = remote_dir
11   @local_dir = local_dir
12 end

Public Instance Methods

upload() click to toggle source
   # File lib/rake/contrib/sshpublisher.rb
14 def upload
15   sh %{scp -rq #{@local_dir}/* #{@host}:#{@remote_dir}}
16 end