Method: Chef::Resource#node

Defined in:
lib/chef/resource.rb

#nodeChef::Node

The node the current Chef run is using.

Corresponds to run_context.node.

Returns:

  • (Chef::Node)

    The node the current Chef run is using.



96
97
98
# File 'lib/chef/resource.rb', line 96

def node
  run_context && run_context.node
end