This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/config/boot.rb

14 lines
326 B
Ruby
Raw Normal View History

require 'rubygems'
# Set up gems listed in the Gemfile.
gemfile = File.expand_path('../../Gemfile', __FILE__)
2010-03-08 08:04:05 +00:00
begin
ENV['BUNDLE_GEMFILE'] = gemfile
2010-03-08 08:04:05 +00:00
require 'bundler'
Bundler.setup
rescue Bundler::GemNotFound => e
STDERR.puts e.message
STDERR.puts "Try running `bundle install`."
exit!
end if File.exist?(gemfile)