diff options
author | Dan Webb <dan.webb@damacus.io> | 2020-04-18 17:19:38 +0100 |
---|---|---|
committer | Dan Webb <dan.webb@damacus.io> | 2020-04-18 17:24:00 +0100 |
commit | 3cb31bfb962a9d1c0075b4d62d540752dc9ff683 (patch) | |
tree | 7f289cdc64ff2fd7783adac27cc1ae29703c59bc /tasks | |
parent | 4a7b20bc53ee7f43d5ff7a0e3c844959093914d7 (diff) | |
download | chef-3cb31bfb962a9d1c0075b4d62d540752dc9ff683.tar.gz |
[FIX DEPRECATION] with_clean_env is deprecated
clean_env is now unbundled
Signed-off-by: Daniel Webb <dan.webb@damacus.io>
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/bin/run_external_test | 2 | ||||
-rw-r--r-- | tasks/dependencies.rb | 4 | ||||
-rw-r--r-- | tasks/rspec.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tasks/bin/run_external_test b/tasks/bin/run_external_test index 889c5bbb15..2eb45c8aab 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 64d365b941..3acecfeb26 100644 --- a/tasks/dependencies.rb +++ b/tasks/dependencies.rb @@ -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 d7e04767c6..03e0b1df05 100644 --- a/tasks/rspec.rb +++ b/tasks/rspec.rb @@ -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 |