Skip to content

Instantly share code, notes, and snippets.

@rpl
Created June 28, 2013 16:39
Show Gist options
  • Save rpl/5886087 to your computer and use it in GitHub Desktop.
Save rpl/5886087 to your computer and use it in GitHub Desktop.
chef snippet to generate a file from json attributes
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