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