Class Spec::Runner::DrbCommandLine
In: lib/spec/runner/drb_command_line.rb
Parent: Object

Facade to run specs by connecting to a DRB server

Methods

run  

Public Class methods

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.

[Source]

    # File lib/spec/runner/drb_command_line.rb, line 9
 9:       def self.run(argv, stderr, stdout, exit=false, warn_if_no_files=true)
10:         begin
11:           DRb.start_service
12:           rails_spec_server = DRbObject.new_with_uri("druby://localhost:8989")
13:           rails_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

[Validate]