Created
May 4, 2011 08:02
-
-
Save RyanScottLewis/954901 to your computer and use it in GitHub Desktop.
Check for bundler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| begin | |
| require 'bundler' | |
| Bundler.setup(:default, :development) | |
| rescue Bundler::BundlerError => e | |
| $stderr.puts e.message | |
| $stderr.puts "Run `bundle install` to install dependencies" | |
| exit e.status_code | |
| rescue Gem::LoadError => e | |
| $stderr.puts e.message | |
| $stderr.puts "Run `gem install bundle` to install bundler" | |
| $stderr.puts "Then, run `bundle install` to install dependencies" | |
| exit e.status_code | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment