Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env ruby
- # Bundler needs to find the Gemfile in the current directory, so we
- # need to dereference symlinks, then chdir to where this script lives
- this_file = __FILE__
- while( File.symlink?(this_file) )
- this_file = File.readlink(this_file)
- end
- Dir.chdir(File.dirname(this_file))
- require "rubygems"
- require "bundler"
- Bundler.setup
- # Now we can start doing whatever it was we were going to do
Add Comment
Please, Sign In to add comment