| Class | Spec::Runner::DrbCommandLine |
| In: |
lib/spec/runner/drb_command_line.rb
|
| Parent: | Object |
Runs specs on a DRB server. Note that this API is similar to that of CommandLine - making it possible for clients to use both interchangeably.
# File lib/spec/runner/drb_command_line.rb, line 9
9: def self.run(argv, stderr, stdout, exit=true, warn_if_no_files=true)
10: begin
11: DRb.start_service
12: spec_server = DRbObject.new_with_uri("druby://localhost:8989")
13: spec_server.run(argv, stderr, stdout)
14: rescue DRb::DRbConnError
15: stderr.puts "No server is running"
16: exit 1 if exit
17: end
18: end