lib/qs/daemon.rb in qs-0.6.0 vs lib/qs/daemon.rb in qs-0.6.1

- old
+ new

@@ -194,16 +194,16 @@ def pid_file(*args) self.configuration.pid_file(*args) end def worker_class(new_worker_class = nil) - self.configuration.worker_class = new_worker_class if new_worker_class + self.configuration.worker_class = new_worker_class if !new_worker_class.nil? self.configuration.worker_class end - def worker_params(new_worker_params = nil ) - self.configuration.worker_params = new_worker_params if new_worker_params + def worker_params(new_worker_params = nil) + self.configuration.worker_params = new_worker_params if !new_worker_params.nil? self.configuration.worker_params end def num_workers(*args) self.configuration.num_workers(*args) @@ -230,9 +230,13 @@ self.configuration.error_procs << block end def queue(queue) self.configuration.queues << queue + end + + def queues + self.configuration.queues end end class Configuration