class Rake::SshFreshDirPublisher

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

Public Instance Methods

upload() click to toggle source
Calls superclass method Rake::SshDirPublisher#upload
   # File lib/rake/contrib/sshpublisher.rb
21 def upload
22   sh %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil
23   sh %{ssh #{@host} mkdir #{@remote_dir}}
24   super
25 end