diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2020-01-13 11:38:30 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2020-01-13 11:38:30 -0800 |
commit | e1cbb4997988b580b818a2a29cdc2a8633d23647 (patch) | |
tree | 80148948acb5df4799231d28bb67c3fdea213d0b | |
parent | 9fbcab182e8006f22c4d768a53b8ce3950e38ef9 (diff) | |
download | chef-e1cbb4997988b580b818a2a29cdc2a8633d23647.tar.gz |
change with_clean_env to with_unbundled_envlcg/with-unbundled-env
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | omnibus/omnibus-test.ps1 | 2 | ||||
-rw-r--r-- | spec/support/chef_helpers.rb | 2 | ||||
-rwxr-xr-x | tasks/bin/run_external_test | 2 | ||||
-rw-r--r-- | tasks/dependencies.rb | 6 | ||||
-rw-r--r-- | tasks/rspec.rb | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/omnibus/omnibus-test.ps1 b/omnibus/omnibus-test.ps1 index 5585a97638..45b6ba5d27 100644 --- a/omnibus/omnibus-test.ps1 +++ b/omnibus/omnibus-test.ps1 @@ -28,7 +28,7 @@ $Env:TMP = "C:\cheftest" Remove-Item -Recurse -Force $Env:TEMP -ErrorAction SilentlyContinue New-Item -ItemType directory -Path $Env:TEMP -# FIXME: we should really use Bundler.with_clean_env in the caller instead of re-inventing it here +# FIXME: we should really use Bundler.with_unbundled_env in the caller instead of re-inventing it here Remove-Item Env:_ORIGINAL_GEM_PATH -ErrorAction SilentlyContinue Remove-Item Env:BUNDLE_BIN_PATH -ErrorAction SilentlyContinue Remove-Item Env:BUNDLE_GEMFILE -ErrorAction SilentlyContinue diff --git a/spec/support/chef_helpers.rb b/spec/support/chef_helpers.rb index 4ac6102887..fd61f5f0b8 100644 --- a/spec/support/chef_helpers.rb +++ b/spec/support/chef_helpers.rb @@ -65,7 +65,7 @@ end def system_windows_service_gem? windows_service_gem_check_command = %q{ruby -r "win32/daemon" -e ":noop"} if defined?(Bundler) - Bundler.with_clean_env do + Bundler.with_unbundled_env do # This returns true if the gem can be loaded system(windows_service_gem_check_command) end diff --git a/tasks/bin/run_external_test b/tasks/bin/run_external_test index 90cf9e2e0c..5e3245d4e9 100755 --- a/tasks/bin/run_external_test +++ b/tasks/bin/run_external_test @@ -31,7 +31,7 @@ Dir.mktmpdir("chef-external-test") do |dir| shell_out!("git clone #{git_url} #{dir}", live_stream: STDOUT) Dir.chdir(dir) do shell_out!("git checkout #{git_thing}", live_stream: STDOUT) - Bundler.with_clean_env do + Bundler.with_unbundled_env do shell_out!("bundle install", live_stream: STDOUT, env: env) shell_out!("bundle exec #{ARGV.join(" ")}", live_stream: STDOUT, env: env) end diff --git a/tasks/dependencies.rb b/tasks/dependencies.rb index ccdb8389ad..c333689f24 100644 --- a/tasks/dependencies.rb +++ b/tasks/dependencies.rb @@ -1,5 +1,5 @@ # -# Copyright:: Copyright (c) 2016-2018, Chef Software Inc. +# Copyright:: Copyright (c) 2016-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -31,7 +31,7 @@ namespace :dependencies do desc "Update #{dir}/Gemfile.lock." task task_name do Dir.chdir(dir) do - Bundler.with_clean_env do + Bundler.with_unbundled_env do rm_f "#{dir}/Gemfile.lock" sh "bundle lock --update --add-platform ruby" sh "bundle lock --update --add-platform x64-mingw32" @@ -45,7 +45,7 @@ namespace :dependencies do desc "Update #{dir}/Gemfile.lock." task task_name do Dir.chdir(dir) do - Bundler.with_clean_env do + Bundler.with_unbundled_env do sh "bundle update" end end diff --git a/tasks/rspec.rb b/tasks/rspec.rb index 3906228416..87aff57842 100644 --- a/tasks/rspec.rb +++ b/tasks/rspec.rb @@ -1,7 +1,7 @@ # # Author:: Adam Jacob (<adam@chef.io>) # Author:: Daniel DeLeo (<dan@chef.io>) -# Copyright:: Copyright 2008-2018, Chef Software Inc. +# Copyright:: Copyright 2008-2019, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -29,7 +29,7 @@ begin task :component_specs do %w{chef-utils chef-config}.each do |gem| Dir.chdir(gem) do - Bundler.with_clean_env do + Bundler.with_unbundled_env do sh("bundle install") sh("bundle exec rake spec") end |