Method: Roundhouse::Queue.all

Defined in:
lib/roundhouse/api.rb

.allObject



231
232
233
234
235
# File 'lib/roundhouse/api.rb', line 231

def self.all
  Roundhouse.redis do |c|
    c.smembers(Roundhouse::Monitor::BUCKETS).map { |bucket_num| c.hkeys("#{Roundhouse::Monitor::STATUS}:#{bucket_num}") }
  end.flatten.sort.map {|q| Roundhouse::Queue.new(q) }
end