Created
July 10, 2009 21:45
-
-
Save square/144839 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- remote_cache.rb | |
+++ (clipboard) | |
@@ -25,7 +25,7 @@ | |
private | |
def repository_cache | |
- File.join(configuration[:repository_cache] || "cached-copy") | |
+ File.join(shared_path, configuration[:repository_cache] || "cached-copy") | |
end | |
def update_repository_cache | |
@@ -42,7 +42,7 @@ | |
run "cp -RPp #{repository_cache} #{configuration[:release_path]} && #{mark}" | |
else | |
exclusions = copy_exclude.map { |e| "--exclude=\"#{e}\"" }.join(' ') | |
- run "rsync -lrp #{exclusions} #{repository_cache}/* #{configuration[:release_path]} && #{mark}" | |
+ run "rsync -lrpt #{exclusions} #{repository_cache}/* #{configuration[:release_path]} && #{mark}" | |
end | |
end | |
@@ -53,4 +53,4 @@ | |
end | |
end | |
-end | |
\ No newline at end of file | |
+end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment