Method: Bundler.with_clean_env

Defined in:
lib/bundler.rb

.with_clean_envObject

Deprecated.

Use ‘with_unbundled_env` instead



374
375
376
377
378
379
380
381
382
383
# File 'lib/bundler.rb', line 374

def with_clean_env
  Bundler::SharedHelpers.major_deprecation(
    2,
    "`Bundler.with_clean_env` has been deprecated in favor of `Bundler.with_unbundled_env`. " \
    "If you instead want the environment before bundler was originally loaded, use `Bundler.with_original_env`",
    :print_caller_location => true
  )

  with_env(unbundled_env) { yield }
end