Skip to content

Instantly share code, notes, and snippets.

@bscott
Created December 10, 2012 18:06
Show Gist options
  • Select an option

  • Save bscott/4252209 to your computer and use it in GitHub Desktop.

Select an option

Save bscott/4252209 to your computer and use it in GitHub Desktop.
Chef Testing Part 2.3 - JSON Check
#!/usr/local/rvm/bin/rvm-shell 1.9.3
echo "Validating JSON objects..."
for i in `find data_bags -name *.json`; do
echo " $i:"
prettify_json.rb $i || exit 1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment