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

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

Instance Method Summary collapse

Instance Method Details

#check!Object



19
20
21
22
23
24
25
# File 'lib/capistrano/fast_remote_cache/capistrano/recipes/deploy/strategy/fast_remote_cache.rb', line 19

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



32
33
34
# File 'lib/capistrano/fast_remote_cache/capistrano/recipes/deploy/strategy/fast_remote_cache.rb', line 32

def prepare!
  update_repository_cache
end

#setup!Object



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

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