Created
February 18, 2017 09:54
-
-
Save stephencoe/db1630fc900f82c9863417a079ee6ee3 to your computer and use it in GitHub Desktop.
Revisions
-
stephencoe created this gist
Feb 18, 2017 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ #!/bin/bash # Validate YML with pretty print output yml-lint() { ruby -e "require 'yaml';require'JSON';puts JSON.pretty_generate(JSON.parse(YAML.load_file(\"$@\").to_json))"; }