Merge pull request #5116 from mitchellh/sethvargo/fix_clean_env

Make with_clean_env a class method
This commit is contained in:
Seth Vargo 2015-01-05 19:08:08 -05:00
commit 7938ea0fb9
1 changed files with 1 additions and 1 deletions

View File

@ -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')