Module: Jack::Queues

Defined in:
lib/jack/queues.rb,
lib/jack/queues/mock.rb,
lib/jack/queues/appcast.rb

Defined Under Namespace

Modules: Appcast, Mock Classes: Task

Instance Method Summary collapse

Instance Method Details

#process_queue(queue_name, options = {}, &block) ⇒ Object



3
4
5
# File 'lib/jack/queues.rb', line 3

def process_queue(queue_name, options = {}, &block)
  Queues::Task.queue_task(queue_name, options, &block)
end

#queueObject



7
8
9
# File 'lib/jack/queues.rb', line 7

def queue
  Thread.current[:task]
end