Created
September 19, 2011 20:57
-
-
Save demental/1227592 to your computer and use it in GitHub Desktop.
Textmate YAML check syntax command
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 characters
ruby -ryaml -e 'begin | |
YAML.load(STDIN.read) | |
p "Syntax OK" | |
rescue | |
print "ERROR: ",$!, "\n" | |
end | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment