Class: SshFreshDirPublisher
- Inherits:
-
SshDirPublisher
- Object
- SshDirPublisher
- SshFreshDirPublisher
- 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
Constructor Details
This class inherits a constructor from SshDirPublisher
Instance Method Details
#upload ⇒ Object
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 |