Class: Rapns::Daemon::Feeder
- Inherits:
-
Object
- Object
- Rapns::Daemon::Feeder
- Extended by:
- InterruptibleSleep, Reflectable
- Defined in:
- lib/rapns/daemon/feeder.rb
Class Method Summary collapse
Methods included from InterruptibleSleep
interrupt_sleep, interruptible_sleep
Methods included from Reflectable
Class Method Details
.start ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/rapns/daemon/feeder.rb', line 7 def self.start @stop = false if Rapns.config. Thread.new { feed_forever } elsif Rapns.config.push enqueue_notifications else feed_forever end end |
.stop ⇒ Object
19 20 21 22 |
# File 'lib/rapns/daemon/feeder.rb', line 19 def self.stop @stop = true interrupt_sleep end |