lib/ci/queue/redis.rb in ci-queue-0.6.0 vs lib/ci/queue/redis.rb in ci-queue-0.7.0

- old
+ new

@@ -8,11 +8,18 @@ module Queue module Redis Error = Class.new(StandardError) LostMaster = Class.new(Error) - def self.new(*args) - Worker.new(*args) + class << self + + def new(*args) + Worker.new(*args) + end + + def from_uri(uri, config) + new(uri.to_s, config) + end end end end end