Module: RRRSpec::Server::Arbiter
- Defined in:
- lib/rrrspec/server/arbiter.rb
Class Method Summary collapse
Class Method Details
.work ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/rrrspec/server/arbiter.rb', line 10 def work command, arg = ArbiterQueue.dequeue case command when 'cancel' cancel(arg) when 'check' check(arg) when 'fail' fail(arg) when 'trial' trial(arg) end end |
.work_loop ⇒ Object
6 7 8 |
# File 'lib/rrrspec/server/arbiter.rb', line 6 def work_loop loop { work } end |