Class: SshFreshDirPublisher

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

Overview

TODO: Remove in Rake 11, duplicated – 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

:nodoc: all



56
57
58
59
60
# File 'lib/rake/contrib/publisher.rb', line 56

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