Permalink
Browse files

rename build method to more meaningful name

  • Loading branch information...
1 parent 2386734 commit 41af69c46bf15879f5ab6b7d979211099411e514 @despo despo committed Mar 18, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/capistrano/recipes/deploy/strategy/copy.rb
@@ -56,12 +56,12 @@ class Copy < Base
def deploy!
if copy_cache
copy_repository_to_local_cache
- build(copy_cache)
+ run_build_script_on copy_cache
copy_cache_to_staging_area
else
copy_repository_to_server
- build(destination)
+ run_build_script_on destination
remove_excluded_files if copy_exclude.any?
end
@@ -73,7 +73,7 @@ def deploy!
rollback_changes
end
- def build(directory)
+ def run_build_script_on directory
return unless build_script
execute "running build script on #{directory}" do

0 comments on commit 41af69c

Please sign in to comment.