Skip to content

Instantly share code, notes, and snippets.

@cliffdickerson
Forked from jellybob/gist:624309
Created October 13, 2010 15:55
Show Gist options
  • Save cliffdickerson/624320 to your computer and use it in GitHub Desktop.
Save cliffdickerson/624320 to your computer and use it in GitHub Desktop.
using chef in cap
require 'chef/config'
require 'chef/node'
Chef::Config.from_file(File.join("etc", "chef", "client.rb"))
node = Chef::Node.load("node_name")
require 'chef/data_bag'; require 'chef/data_bag_item'; Chef::DataBagItem.load(databag, id);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment