From a438e854189114eee6a2561ef4b02afbf1256a52 Mon Sep 17 00:00:00 2001 From: Seth Vargo Date: Mon, 5 Jan 2015 19:07:04 -0500 Subject: [PATCH] Make with_clean_env a class method Fixes #5021 --- lib/vagrant/util/env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant/util/env.rb b/lib/vagrant/util/env.rb index e7c23ccc6..3d3200f17 100644 --- a/lib/vagrant/util/env.rb +++ b/lib/vagrant/util/env.rb @@ -26,7 +26,7 @@ module Vagrant # @param [Proc] block # the block to execute with the cleaned environment # - def with_clean_env(&block) + def self.with_clean_env(&block) original = ENV.to_hash ENV.delete('_ORIGINAL_GEM_PATH')