Guest User

Untitled

a guest
May 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #!/usr/bin/env ruby
  2.  
  3. # Bundler needs to find the Gemfile in the current directory, so we
  4. # need to dereference symlinks, then chdir to where this script lives
  5. this_file = __FILE__
  6. while( File.symlink?(this_file) )
  7. this_file = File.readlink(this_file)
  8. end
  9. Dir.chdir(File.dirname(this_file))
  10.  
  11. require "rubygems"
  12. require "bundler"
  13. Bundler.setup
  14.  
  15. # Now we can start doing whatever it was we were going to do
Add Comment
Please, Sign In to add comment