Class: Capistrano::Deploy::Strategy::CopyWithRemoteCache

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

Overview

Implements the deployment strategy that keeps a cached copy.

Instance Method Summary collapse

Instance Method Details

#check!Object



14
15
16
17
18
19
# File 'lib/capistrano/recipes/deploy/strategy/copy_with_remote_cache.rb', line 14

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

#deploy!Object



9
10
11
12
# File 'lib/capistrano/recipes/deploy/strategy/copy_with_remote_cache.rb', line 9

def deploy!
    update_repository_cache
    copy_repository_cache
end