Class: Spinoff::Server::Fork
- Defined in:
- lib/spinoff/server/fork.rb
Instance Attribute Summary
Attributes inherited from Generic
Instance Method Summary collapse
Methods inherited from Generic
#accept_loop, #disconnect_client, #init_script, #initialize, start
Constructor Details
This class inherits a constructor from Spinoff::Server::Generic
Instance Method Details
#start ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/spinoff/server/fork.rb', line 8 def start test_runner = Spinoff::TestRunner.init(config[:test_framework]) load_init_script(init_script) accept_loop do |files| start = Time.now fork do STDERR.puts "Loading #{files.inspect}" test_runner << files end Process.wait STDERR.puts "Execution time: %.4fs" % (Time.now - start) end end |