Class: Rake::SshFreshDirPublisher (Ruby 2.2.2)
Description: Class : Rake::SshFreshDirPublisher - Ruby 2.2.2

- Home
- Core 2.2.2
- Std-lib 2.2.2
- Downloads

Support for the Ruby 2.2 series has ended. See here for reference.

### Home Classes Methods

### In Files

- rake/contrib/sshpublisher.rb

### Parent

Rake::SshDirPublisher

### Methods

- #upload

### Class/Module Index

Quicksearch

- FileUtils
- Module
- Object
- Pathname
- Rake::Application
- Rake::CompositePublisher
- Rake::DSL
- Rake::DefaultLoader
- Rake::EarlyTime
- Rake::FileCreationTask
- Rake::FileList
- Rake::FileTask
- Rake::FileUtilsExt
- Rake::InvocationChain
- Rake::InvocationChain::EmptyInvocationChain
- Rake::InvocationExceptionMixin
- Rake::LateTime
- Rake::LinkedList
- Rake::LinkedList::EmptyLinkedList
- Rake::MakefileLoader
- Rake::MultiTask
- Rake::NameSpace
- Rake::PackageTask
- Rake::PrivateReader
- Rake::RuleRecursionOverflowError
- Rake::Scope
- Rake::SshDirPublisher
- Rake::SshFilePublisher
- Rake::SshFreshDirPublisher
- Rake::Task
- Rake::TaskArgumentError
- Rake::TaskArguments
- Rake::TaskLib
- Rake::TaskManager
- Rake::TestTask
- Rake::Win32
- String

No matching classes.

# Rake::SshFreshDirPublisher

Publish an entire directory to a fresh remote directory using SSH.

### Public Instance Methods

upload() click to toggle source

Uploads the files after removing the existing remote directory.

                   # File rake/contrib/sshpublisher.rb, line 32
    def upload
      sh "ssh", @host, "rm", "-rf", @remote_dir rescue nil
      sh "ssh", @host, "mkdir",     @remote_dir
      super
    end