Class: Rake::SshFreshDirPublisher

Inherits:
SshDirPublisher show all
Defined in:
lib/rake/contrib/sshpublisher.rb

Overview

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

Instance Method Summary collapse

Methods inherited from SshDirPublisher

#initialize

Constructor Details

This class inherits a constructor from Rake::SshDirPublisher

Instance Method Details

#uploadObject



23
24
25
26
27
# File 'lib/rake/contrib/sshpublisher.rb', line 23

def upload
  sh %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil
  sh %{ssh #{@host} mkdir #{@remote_dir}}
  super
end