Skip to content

Commit

Permalink
New file: Rakefile
Browse files Browse the repository at this point in the history
  • Loading branch information
thypon committed Oct 30, 2017
1 parent 0ccd3a0 commit 46ce6ec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
PKG = 'github.com/cleafy/promqueen'.freeze

task :ensure do
ln_sf ENV['PWD'], "#{ENV['GOPATH']}/src/#{PKG}"
sh "cd #{ENV['GOPATH']}/src/#{PKG} && dep ensure"
cd ENV['PWD']
Dir.chdir('vendor') do
Dir['*/*/*'].each do |d|
puts "Linking #{d} into #{ENV['GOPATH']}"
rm_rf "#{ENV['GOPATH']}/src/#{d}"
mkdir_p "#{ENV['GOPATH']}/src/#{File.dirname(d)}"
ln_sf "#{Dir.pwd}/#{d}", "#{ENV['GOPATH']}/src/#{d}"
end
end
end

0 comments on commit 46ce6ec

Please sign in to comment.