Module: Yup::State

Defined in:
lib/yup/state.rb,
lib/yup/state/bdb.rb,
lib/yup/state/redis.rb

Defined Under Namespace

Classes: BDB, Redis, RequestForwarder

Class Method Summary collapse

Class Method Details

.queue_type(str) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/yup/state.rb', line 3

def self.queue_type(str)
  uri = URI.parse(str)
  case uri.scheme
  when "bdb"
    :bdb
  when "redis"
    :redis
  end
end