Permalink
Browse files

rename filename to name

so there is no confusion with the filename method
  • Loading branch information...
1 parent 2c60bd8 commit d20acaf8928b8bd7da55e0f35572bdb0d0ab2d8a @despo committed Mar 18, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 lib/capistrano/recipes/deploy/strategy/copy.rb
View
10 lib/capistrano/recipes/deploy/strategy/copy.rb
@@ -135,13 +135,13 @@ def create_destination
end
def copy_files files
- files.each { |filename| process_file(filename) }
+ files.each { |name| process_file(name) }
end
- def process_file filename
- return copy_symlink(filename) if File.symlink? filename
- return copy_directory(filename) if File.directory? filename
- copy_hardlink filename
+ def process_file name
+ return copy_symlink(name) if File.symlink? name
+ return copy_directory(name) if File.directory? name
+ copy_hardlink name
end
def copy_symlink name

0 comments on commit d20acaf

Please sign in to comment.