allow overriding the Gemfile location with BUNDLE_GEMFILE

Change-Id: Idba5b6d7186321fa795bfb2ca0dca39316884208
Reviewed-on: https://gerrit.instructure.com/15363
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
This commit is contained in:
Brian Palmer 2012-11-14 12:38:21 -07:00
parent 8b9ec1b52f
commit d9b75ead14
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ end
begin
# Set up load paths for all bundled gems
ENV["BUNDLE_GEMFILE"] = File.expand_path("../../Gemfile", __FILE__)
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile", __FILE__)
Bundler.setup
Encoding.default_internal = Encoding.default_external = 'UTF-8' if defined?(Encoding)
rescue Bundler::GemNotFound