Module: Chef::Mixin::DefaultPaths
- Includes:
- ChefUtils::DSL::DefaultPaths
- Included in:
- PathSanity
- Defined in:
- lib/chef/mixin/default_paths.rb
Instance Method Summary collapse
Instance Method Details
#enforce_default_paths(env = ENV) ⇒ Object
25 26 27 28 29 |
# File 'lib/chef/mixin/default_paths.rb', line 25 def enforce_default_paths(env = ENV) if Chef::Config[:enforce_default_paths] || Chef::Config[:enforce_path_sanity] env["PATH"] = default_paths(env) end end |