Class: RailsParallel::Runner
- Inherits:
-
Object
- Object
- RailsParallel::Runner
- Defined in:
- lib/rails_parallel/runner.rb,
lib/rails_parallel/runner/child.rb,
lib/rails_parallel/runner/test_runner.rb,
lib/rails_parallel/runner/parent.rb
Defined Under Namespace
Classes: Child, Parent, TestRunner
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(socket) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(socket) ⇒ Runner
Returns a new instance of Runner.
10 11 12 |
# File 'lib/rails_parallel/runner.rb', line 10 def initialize(socket) @socket = socket end |
Class Method Details
Instance Method Details
#run ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/rails_parallel/runner.rb', line 14 def run prepare @socket << :ready @socket.each_object do |obj| break if obj == :shutdown @socket << run_suite(obj) ? :success : :failure @socket << :ready end rescue EOFError # shutdown end |