| In: |
lib/rq-2.3.1/creator.rb
|
| Parent: | MainHelper |
a queue is a directory
the Creator class is responsible for initializing the queue directory and all supporting files. these include:
it is an error to attempt to initialize a queue which already exists
# File lib/rq-2.3.1/creator.rb, line 22
22: def create
23: #--{{{
24: raise "q <#{ @qpath }> exists!" if test ?e, @qpath
25: @q = JobQueue::create @qpath, 'logger' => @logger
26:
27: puts '---'
28: puts "q: #{ @q.path }"
29: puts "db: #{ @q.db.path }"
30: puts "schema: #{ @q.db.schema }"
31: puts "lock: #{ @q.db.lockfile }"
32: #--}}}
33: end