Module: Chef::Mixin::PathSanity

Defined in:
lib/chef/mixin/path_sanity.rb

Overview

@ deprecated

Instance Method Summary collapse

Instance Method Details

#enforce_path_sanity(env = ENV) ⇒ Object



23
24
25
26
27
# File 'lib/chef/mixin/path_sanity.rb', line 23

def enforce_path_sanity(env = ENV)
  if Chef::Config[:enforce_path_sanity]
    env["PATH"] = ChefUtils::DSL::PathSanity.sanitized_path(env)
  end
end