Class
SshDirPublisher
In: lib/rake/contrib/publisher.rb
Parent: Object

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

Methods

new, upload,
Public Class methods
new(host, remote_dir, local_dir)
    # File lib/rake/contrib/publisher.rb, line 35
35:   def initialize(host, remote_dir, local_dir)
36:     @host = host
37:     @remote_dir = remote_dir
38:     @local_dir = local_dir
39:   end
Public Instance methods
upload()
    # File lib/rake/contrib/publisher.rb, line 41
41:   def upload
42:     run %{scp -rq #{@local_dir}/* #{@host}:#{@remote_dir}}
43:   end