Put this at the start of your script:

exit if defined?(Ocra)

-- 
Posted via http://www.ruby-forum.com/.