Method: Chef::Client#load_node
- Defined in:
- lib/chef/client.rb
#load_node ⇒ Chef::Node
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiates a Chef::Node object, possibly loading the node’s prior state when using chef-client. Sets Chef.node to the new node.
449 450 451 452 453 454 |
# File 'lib/chef/client.rb', line 449 def load_node policy_builder.load_node run_status.node = policy_builder.node Chef.set_node(policy_builder.node) node end |