Created
June 28, 2013 16:39
-
-
Save rpl/5886087 to your computer and use it in GitHub Desktop.
chef snippet to generate a file from json attributes
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
file "/my/file/path.json" do | |
content JSON.stringify(my_json_attributes) | |
mode "0644" | |
action :create | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment