adamhjk (owner)

Revisions

gist: 216481 Download_button fork
public
Public Clone URL: git://gist.github.com/216481.git
Embed All Files: show embed
Text #
1
2
3
4
5
6
require 'chef'
require 'chef/config'
 
Chef::Config.from_file("/etc/chef/client.rb")
r = Chef::REST.new(Chef::Config[:chef_server_url], ENV["OPSCODE_USER"], ENV["OPSCODE_KEY"])