Class: Capistrano::Deploy::Strategy::FilteredRemoteCache

Inherits:
Remote
  • Object
show all
Defined in:
lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb

Overview

Implements the deployment strategy that keeps a cached checkout of the source code on each remote server. Each deploy simply updates the cached checkout, and then filters a copy through tar to remove unwanted .svn directories, finally leaving a pristeen, export-like copy at the destination.

Instance Method Summary collapse

Instance Method Details

#check!Object



28
29
30
31
32
# File 'lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb', line 28

def check!
  super.check do |d|
    d.remote.writable(shared_path)
  end
end

#deploy!Object

Executes the SCM command for this strategy and writes the REVISION mark file to each host.



23
24
25
26
# File 'lib/capistrano/recipes/deploy/strategy/filtered_remote_cache.rb', line 23

def deploy!
  update_repository_cache
  tar_copy_repository_cache
end