class SshFreshDirPublisher

Publish an entire directory to a fresh remote directory using SSH.

Public Instance Methods

upload() click to toggle source
Calls superclass method SshDirPublisher#upload
   # File lib/rake/contrib/publisher.rb
46 def upload
47   run %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil
48   run %{ssh #{@host} mkdir #{@remote_dir}}
49   super
50 end