Skip to content

Instantly share code, notes, and snippets.

@square
Created July 10, 2009 21:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save square/144839 to your computer and use it in GitHub Desktop.
Save square/144839 to your computer and use it in GitHub Desktop.
--- 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