Skip to content

Instantly share code, notes, and snippets.

@lbt
Created October 11, 2011 15:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbt/1278340 to your computer and use it in GitHub Desktop.
Save lbt/1278340 to your computer and use it in GitHub Desktop.
Simple ruote process checker
#!/usr/bin/env ruby
require 'rubygems'
require 'ruote'
require 'ruote/reader'
require 'yajl'
print "Reading #{ARGV[0]}\n"
pdef = File.new(ARGV[0], 'r').read
begin
r = Ruote::Reader.read(pdef)
rescue => e
print "Invalid syntax\n"
print e.cause
print e.inspect
print "\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment