Skip to content

Commit

Permalink
fix symlink to not override rake's
Browse files Browse the repository at this point in the history
  • Loading branch information
pairing committed Mar 26, 2012
1 parent b0c241a commit b914b4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ desc "symlink all dot files and bin directory"
task :default do
files = Dir.glob('.*') - ['.git', '.gitmodules', '.', '..']
files << 'bin'
symlink files
symlink_files files

# non-pairing machines should not symlink the .gitconfig
print "are you on an EdgeCase pairing machine? [yn] "
Expand All @@ -26,11 +26,11 @@ task :default do
end

# symlink the rails-bootstrap folder so the shell script can find it
replace_file(File.join(File.dirname(__FILE__), "rails-bootstrap"))
replace_file("rails-bootstrap")
end


def symlink(files)
def symlink_files(files)
files.each do |file|
case
when file_identical?(file) then skip_identical_file(file)
Expand Down

0 comments on commit b914b4f

Please sign in to comment.