lib/qpush/server/config.rb in qpush-0.1.7 vs lib/qpush/server/config.rb in qpush-0.1.8
- old
+ new
@@ -6,9 +6,15 @@
attr_accessor :worker, :keys
def config
@config ||= Config.new
end
+
+ def build_worker
+ worker = WorkerConfig.new
+ yield worker
+ worker
+ end
end
class WorkerConfig
DEFAULTS = {
namespace: 'default',