From 07389f26edff0cf77cd104f26e02320064c45d00 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 2 Feb 2014 20:32:39 +0100 Subject: [PATCH] core: Force bundler usage if in Installer --- lib/vagrant/bundler.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb index bae05fa20..1567701e4 100644 --- a/lib/vagrant/bundler.rb +++ b/lib/vagrant/bundler.rb @@ -18,8 +18,9 @@ module Vagrant end def initialize - @enabled = !::Bundler::SharedHelpers.in_bundle? - @enabled = true if ENV["VAGRANT_FORCE_BUNDLER"] + @enabled = true if ENV["VAGRANT_INSTALLER_ENV"] || + ENV["VAGRANT_FORCE_BUNDLER"] + @enabled = !::Bundler::SharedHelpers.in_bundle? if !@enabled @monitor = Monitor.new @gem_home = ENV["GEM_HOME"]