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
- (Object) upload
21 22 23 24 25 |
# File 'lib/rake/contrib/sshpublisher.rb', line 21 def upload sh %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil sh %{ssh #{@host} mkdir #{@remote_dir}} super end |