Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add UnsharedRemoteCache (copied from eycap gem) #144

Merged
merged 1 commit into from Apr 12, 2012
Jump to file or symbol
Failed to load files and symbols.
+21 −0
Split
@@ -0,0 +1,21 @@
+require 'capistrano/recipes/deploy/strategy/remote_cache'
+
+module Capistrano
+ module Deploy
+ module Strategy
+ class UnsharedRemoteCache < RemoteCache
+ def check!
+ super.check do |d|
+ d.remote.writable(repository_cache)
+ end
+ end
+
+ private
+
+ def repository_cache
+ configuration[:repository_cache]
+ end
+ end
+ end
+ end
+end