Class: SshFreshDirPublisher

Inherits:
SshDirPublisher show all
Defined in:
lib/rake/contrib/publisher.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 SshDirPublisher

Instance Method Details

#uploadObject



50
51
52
53
54
# File 'lib/rake/contrib/publisher.rb', line 50

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