Skip to content

Commit

Permalink
Fixed link_file() problem when rake is run more than once.
Browse files Browse the repository at this point in the history
  • Loading branch information
obxhdx committed Jan 12, 2012
1 parent febe348 commit 53f3a7f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,10 @@ def replace_file(file)
end

def link_file(file)
puts "linking #{path_to(file)}"
ln_s File.join(FileUtils.pwd,file), path_to(file), :force => true
puts "Linking #{@snippets_dir}/#{file}"
ln_s File.join(FileUtils.pwd,file), @snippets_dir, :force => true, :verbose => false
end

def path_to(file)
File.join(@snippets_dir, "#{file}")
end


namespace :snippets_dir do
desc "Sets @snippets_dir dependent on which OS You run"
task :find do
Expand Down

0 comments on commit 53f3a7f

Please sign in to comment.