Remove direct bundler usage within Env util
This commit is contained in:
parent
b2457e3e21
commit
c20e160295
|
@ -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", "")
|
||||
|
|
Loading…
Reference in New Issue