Created
May 29, 2013 00:32
-
-
Save otterley/5667172 to your computer and use it in GitHub Desktop.
This file contains 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
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