Method: Chef::Resource.load_current_value

Defined in:
lib/chef/resource.rb

.load_current_value(&load_block) ⇒ Object

Define a method to load up this resource’s properties with the current actual values.

Parameters:

  • load_block

    The block to load. Will be run in the context of a newly created resource with its identity values filled in.

[View source]

1110
1111
1112
# File 'lib/chef/resource.rb', line 1110

def self.load_current_value(&load_block)
  define_method(:load_current_value!, &load_block)
end