Class: Cucumber::Cli::DRbClient
- Defined in:
- lib/cucumber/cli/drb_client.rb
Overview
Runs features on a DRB server, originally created with Spork compatibility in mind.
Class Method Summary collapse
Class Method Details
.run(args, error_stream, out_stream) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/cucumber/cli/drb_client.rb', line 10 def self.run(args, error_stream, out_stream) # See http://redmine.ruby-lang.org/issues/show/496 as to why we specify localhost:0 DRb.start_service("druby://localhost:0") feature_server = DRbObject.new_with_uri("druby://127.0.0.1:8990") feature_server.run(args, error_stream, out_stream) rescue DRb::DRbConnError raise DRbClientError, "No DRb server is running." end |