summaryrefslogtreecommitdiff
path: root/lib/bundler/runtime.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-02-01 17:29:32 -0600
committerSamuel Giddins <segiddins@segiddins.me>2016-02-01 17:29:32 -0600
commit5b639c3d774e4a83f1a15ec15e16b3e777c79642 (patch)
tree1bb9829e4c5b330c2ae3b83580367dcb1d0570eb /lib/bundler/runtime.rb
parent789dabcb48adf58175a75751c4aaf08e4c39e707 (diff)
downloadbundler-5b639c3d774e4a83f1a15ec15e16b3e777c79642.tar.gz
[Exec] Avoid loading the definition before exec-ing
Diffstat (limited to 'lib/bundler/runtime.rb')
-rw-r--r--lib/bundler/runtime.rb15
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/bundler/runtime.rb b/lib/bundler/runtime.rb
index 6ef476b9dc..c2d5ad4b0a 100644
--- a/lib/bundler/runtime.rb
+++ b/lib/bundler/runtime.rb
@@ -13,7 +13,7 @@ module Bundler
specs = groups.any? ? @definition.specs_for(groups) : requested_specs
- setup_environment
+ SharedHelpers.set_bundle_environment
Bundler.rubygems.replace_entrypoints(specs)
# Activate the specs
@@ -205,19 +205,6 @@ module Bundler
output
end
- def setup_environment
- begin
- ENV["BUNDLE_BIN_PATH"] = Bundler.rubygems.bin_path("bundler", "bundle", VERSION)
- rescue Gem::GemNotFoundException
- ENV["BUNDLE_BIN_PATH"] = File.expand_path("../../../exe/bundle", __FILE__)
- end
-
- # Set BUNDLE_GEMFILE
- ENV["BUNDLE_GEMFILE"] = default_gemfile.to_s
-
- SharedHelpers.set_bundle_environment
- end
-
private
def prune_gem_cache(resolve, cache_path)