module ResqueHelpers::Worker
Public Instance Methods
find_by_name(name)
click to toggle source
# File lib/resque_helpers/worker.rb, line 12 def find_by_name(name) Resque::Worker.all.reduce([]) do |queues, worker| queues << worker if worker.to_s == name queues end end
find_by_queue_name(queue_name)
click to toggle source
# File lib/resque_helpers/worker.rb, line 5 def find_by_queue_name(queue_name) Resque::Worker.all.reduce([]) do |queues, worker| queues << worker if worker.queues.include? queue_name queues end end
find_by_server_name(name)
click to toggle source
# File lib/resque_helpers/worker.rb, line 19 def find_by_server_name(name) Resque::Worker.all.reduce([]) do |queues, worker| queues << worker if worker.to_s == name queues end end