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