Skip to content

Instantly share code, notes, and snippets.

@adamhjk
Created April 26, 2011 16:55
Show Gist options
  • Select an option

  • Save adamhjk/942652 to your computer and use it in GitHub Desktop.

Select an option

Save adamhjk/942652 to your computer and use it in GitHub Desktop.
# Write it out
File.open("/tmp/foo.json", "w") { |f| f.puts node.to_json }
# Read it in
JSON.parse(IO.read("/tmp/foo.json"))
# Link to report handlers
http://wiki.opscode.com/display/chef/Exception+and+Report+Handlers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment