Created
June 8, 2010 15:30
-
-
Save tie-rack/430195 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env ruby | |
require 'yaml' | |
begin | |
YAML.load(STDIN) | |
puts '<h1 style="color: green;">GOOD</h1>' | |
rescue Exception => e | |
puts '<h1 style="color: red;">BAD</h1>' | |
puts e.message | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment