| In: |
lib/rq-2.3.1/configurator.rb
|
| Parent: | MainHelper |
a Configurator adds key/value pairs to a queue’s configuration. these key/value pairs are not currently used, but will be in a future release
# File lib/rq-2.3.1/configurator.rb, line 16
16: def configure
17: #--{{{
18: set_q
19: attributes = {}
20: unless @argv.empty?
21: kv_pat = %/^\s*([^\s]+)\s*=+\s*([^\s]+)\s*$/o
22: @q.transaction do
23: @argv.each do |arg|
24: match = kv_pat.match arg
25: if match
26: k, v = match[1], match[2]
27: @q[k] = v
28: end
29: end
30: attributes = @q.attributes
31: end
32: end
33: y attributes
34: #--}}}
35: end