unless defined? $__rq_creator__ module RQ #{{{ LIBDIR = File::dirname(File::expand_path(__FILE__)) + File::SEPARATOR unless defined? LIBDIR require LIBDIR + 'mainhelper' class Creator < MainHelper #{{{ def create #{{{ raise "q <#{ @qpath }> exists!" if test ?e, @qpath @q = JobQueue::create @qpath, 'logger' => @logger info{ "created <#{ @q.path }>" } #}}} end #}}} end # class Creator #}}} end # module RQ $__rq_creator__ = __FILE__ end