Skip to content

Instantly share code, notes, and snippets.

@demental
Created September 19, 2011 20:57
Show Gist options
  • Save demental/1227592 to your computer and use it in GitHub Desktop.
Save demental/1227592 to your computer and use it in GitHub Desktop.
Textmate YAML check syntax command
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