Method: Chef::Provider::Env#load_current_resource
- Defined in:
- lib/chef/provider/env.rb
#load_current_resource ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/chef/provider/env.rb', line 34 def load_current_resource @current_resource = Chef::Resource::Env.new(@new_resource.name) @current_resource.key_name(@new_resource.key_name) if env_key_exists(@new_resource.key_name) @current_resource.value(env_value(@new_resource.key_name)) else @key_exists = false Chef::Log.debug("#{@new_resource} key does not exist") end @current_resource end |