Created
April 26, 2011 16:55
-
-
Save adamhjk/942652 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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