Class: Capistrano::Deploy::Strategy::FastRemoteCache

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

Instance Method Summary collapse

Instance Method Details

#check!Object



15
16
17
18
19
20
21
# File 'lib/capistrano/recipes/deploy/strategy/fast_remote_cache.rb', line 15

def check!
  super.check do |d|
    d.remote.command(configuration.fetch(:ruby, "ruby"))
    d.remote.directory(bin_path)
    d.remote.file(File.join(bin_path, "copy.rb"))
  end
end

#prepare!Object



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

def prepare!
  update_repository_cache
end

#setup!Object



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

def setup!
  run "mkdir -p #{bin_path}"
  upload(File.join(File.dirname(__FILE__), "utilities", "copy.rb"), File.join(bin_path, "copy.rb"))
end