Skip to content

Instantly share code, notes, and snippets.

@otterley
Created May 29, 2013 00:32
Show Gist options
  • Save otterley/5667172 to your computer and use it in GitHub Desktop.
Save otterley/5667172 to your computer and use it in GitHub Desktop.
attrs_json = cookbook_file "/tmp/attrs.json" do
action :nothing
source "examples/attributes.json"
mode 00600
end
attrs_json.run_action(:create)
attrs = JSON.load(File.open("/tmp/attrs.json"))
node.consume_attributes(attrs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment