Permalink
Browse files

extract code to copy_repository_to_server

  • Loading branch information...
1 parent 8586954 commit 7897b460445830af01f887b622a3c6cda64a03c7 @despo committed Mar 16, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/capistrano/recipes/deploy/strategy/copy.rb
@@ -66,8 +66,7 @@ def deploy!
build(copy_cache)
copy_cache_to_server
else
- logger.debug "getting (via #{copy_strategy}) revision #{revision} to #{destination}"
- system(command)
+ copy_repository_to_server
build(destination)
@@ -167,6 +166,11 @@ def copy_cache_to_server
end
end
+ def copy_repository_to_server
+ logger.debug "getting (via #{copy_strategy}) revision #{revision} to #{destination}"
+ system(command)
+ end
+
# Specify patterns to exclude from the copy. This is only valid
# when using a local cache.
def copy_exclude

0 comments on commit 7897b46

Please sign in to comment.