Class: DeepTest::Distributed::TestServerWorkers
- Inherits:
-
LocalWorkers
- Object
- LocalWorkers
- DeepTest::Distributed::TestServerWorkers
- Defined in:
- lib/deep_test/distributed/test_server_workers.rb
Instance Method Summary collapse
-
#initialize(options, test_server_config, connection_info) ⇒ TestServerWorkers
constructor
A new instance of TestServerWorkers.
- #number_of_workers ⇒ Object
- #server ⇒ Object
- #start_all ⇒ Object
Methods inherited from LocalWorkers
Constructor Details
#initialize(options, test_server_config, connection_info) ⇒ TestServerWorkers
Returns a new instance of TestServerWorkers.
4 5 6 7 8 |
# File 'lib/deep_test/distributed/test_server_workers.rb', line 4 def initialize(, test_server_config, connection_info) super() @test_server_config = test_server_config @connection_info = connection_info end |
Instance Method Details
#number_of_workers ⇒ Object
10 11 12 |
# File 'lib/deep_test/distributed/test_server_workers.rb', line 10 def number_of_workers @test_server_config[:number_of_workers] end |
#server ⇒ Object
14 15 16 |
# File 'lib/deep_test/distributed/test_server_workers.rb', line 14 def server Server.remote_reference(@connection_info.address, @options.server_port) end |
#start_all ⇒ Object
18 19 20 21 |
# File 'lib/deep_test/distributed/test_server_workers.rb', line 18 def start_all super @warlock.exit_when_none_running end |