Class: Fnf::Worker
- Inherits:
-
Object
- Object
- Fnf::Worker
- Defined in:
- lib/fnf/worker.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/fnf/worker.rb', line 4 def self.run pipe = Fifo.new('/tmp/fnfq') while contents = pipe.readline begin payload = JSON.parse(contents) Connection.send(payload[0], payload[1], payload[2]) rescue end end end |