Skip to content

Instantly share code, notes, and snippets.

@jellybob
Created October 13, 2010 15:49
Show Gist options
  • Save jellybob/624309 to your computer and use it in GitHub Desktop.
Save jellybob/624309 to your computer and use it in GitHub Desktop.
require 'chef/config'
require 'chef/node'
Chef::Config.from_file(File.join("etc", "chef", "client.rb"))
node = Chef::Node.load("node_name")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment