Advertisement
Guest User

dewindowsify.rake

a guest
Sep 25th, 2017
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.34 KB | None | 0 0
  1. before "bundler:install", :dewindowsify
  2.  
  3. desc "Remove references to Windows in Gemfile.lock"
  4. task :dewindowsify do
  5.   on roles(:app) do
  6.     execute "sed -i 's/-x86-mingw32//' #{release_path}/Gemfile.lock"
  7.     execute "sed -i 's/x86-mingw32/x86_64-linux\n  ruby/' #{release_path}/Gemfile.lock"
  8.     puts "Gemfile.lock dewindowsified"
  9.   end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement