18 lines
463 B
Ruby
18 lines
463 B
Ruby
|
require 'rubygems'
|
||
|
|
||
|
# Set up gems listed in the Gemfile.
|
||
|
#gemfile = File.expand_path('../../Gemfile', __FILE__)
|
||
|
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile',__FILE__)
|
||
|
|
||
|
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
|
||
|
|
||
|
=begin
|
||
|
ENV['BUNDLE_GEMFILE'] = gemfile
|
||
|
require 'bundler'
|
||
|
Bundler.setup
|
||
|
rescue Bundler::GemNotFound => e
|
||
|
STDERR.puts e.message
|
||
|
STDERR.puts "Try running `bundle install`."
|
||
|
exit!
|
||
|
=end if File.exist?(gemfile)
|