Merge pull request #8094 from chrisroberts/bundler/env

Remove direct bundler usage within Env util
This commit is contained in:
Chris Roberts 2016-12-07 06:56:01 -08:00 committed by GitHub
commit 23b4421309
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,3 @@
require "bundler"
module Vagrant
module Util
class Env
@ -39,7 +37,9 @@ module Vagrant
# the block to execute with the cleaned environment
def self.with_clean_env
with_original_env do
ENV["MANPATH"] = ENV["BUNDLE_ORIG_MANPATH"]
if ENV["BUNDLE_ORIG_MANPATH"]
ENV["MANPATH"] = ENV["BUNDLE_ORIG_MANPATH"]
end
ENV.delete_if { |k,_| k[0,7] == "BUNDLE_" }
if ENV.has_key? "RUBYOPT"
ENV["RUBYOPT"] = ENV["RUBYOPT"].sub("-rbundler/setup", "")