1
0
Fork 0
mirror of https://github.com/endofunky/sidetiq.git synced 2022-11-09 13:53:30 -05:00

Delegate table flipping to Sidekiq.

This commit is contained in:
Tobias Svensson 2013-03-11 13:10:04 +00:00
parent 70ed46b938
commit 452d946e8a

View file

@ -1,3 +1,5 @@
# encoding: utf-8
# stdlib
require 'monitor'
require 'ostruct'
@ -21,6 +23,13 @@ require 'sidetiq/version'
# The Sidetiq namespace.
module Sidetiq
class << self
# Public: Flip-table API.
#
# Delegates to Sidekiq's flip-table API.
def °°
Sidekiq.°°
end
# Public: Returns an Array of workers including Sidetiq::Schedulable.
def workers
schedules.keys
@ -129,4 +138,3 @@ module Sidetiq
end
end
end