Module: Qs::Daemon::ClassMethods
- Defined in:
- lib/qs/daemon.rb
Instance Method Summary collapse
- #configuration ⇒ Object
- #error(&block) ⇒ Object
- #init(&block) ⇒ Object
- #logger(*args) ⇒ Object
- #max_workers(*args) ⇒ Object
- #min_workers(*args) ⇒ Object
- #name(*args) ⇒ Object
- #pid_file(*args) ⇒ Object
- #queue(queue) ⇒ Object
- #shutdown_timeout(*args) ⇒ Object
- #verbose_logging(*args) ⇒ Object
- #workers(*args) ⇒ Object
Instance Method Details
#configuration ⇒ Object
224 225 226 |
# File 'lib/qs/daemon.rb', line 224 def configuration @configuration ||= Configuration.new end |
#error(&block) ⇒ Object
265 266 267 |
# File 'lib/qs/daemon.rb', line 265 def error(&block) self.configuration.error_procs << block end |
#init(&block) ⇒ Object
261 262 263 |
# File 'lib/qs/daemon.rb', line 261 def init(&block) self.configuration.init_procs << block end |
#logger(*args) ⇒ Object
253 254 255 |
# File 'lib/qs/daemon.rb', line 253 def logger(*args) self.configuration.logger(*args) end |
#max_workers(*args) ⇒ Object
240 241 242 |
# File 'lib/qs/daemon.rb', line 240 def max_workers(*args) self.configuration.max_workers(*args) end |
#min_workers(*args) ⇒ Object
236 237 238 |
# File 'lib/qs/daemon.rb', line 236 def min_workers(*args) self.configuration.min_workers(*args) end |
#name(*args) ⇒ Object
228 229 230 |
# File 'lib/qs/daemon.rb', line 228 def name(*args) self.configuration.name(*args) end |
#pid_file(*args) ⇒ Object
232 233 234 |
# File 'lib/qs/daemon.rb', line 232 def pid_file(*args) self.configuration.pid_file(*args) end |
#queue(queue) ⇒ Object
269 270 271 |
# File 'lib/qs/daemon.rb', line 269 def queue(queue) self.configuration.queues << queue end |
#shutdown_timeout(*args) ⇒ Object
257 258 259 |
# File 'lib/qs/daemon.rb', line 257 def shutdown_timeout(*args) self.configuration.shutdown_timeout(*args) end |
#verbose_logging(*args) ⇒ Object
249 250 251 |
# File 'lib/qs/daemon.rb', line 249 def verbose_logging(*args) self.configuration.verbose_logging(*args) end |
#workers(*args) ⇒ Object
244 245 246 247 |
# File 'lib/qs/daemon.rb', line 244 def workers(*args) self.min_workers(*args) self.max_workers(*args) end |