class Spork::Server

def run(argv, stderr, stdout)

When implementing a test server, don't override this method: override run_tests instead.

spec_server.run(options.argv, $stderr, $stdout)
spec_server = DRbObject.new_with_uri("druby://127.0.0.1:8989")
# see http://redmine.ruby-lang.org/issues/show/496 to see why localhost:0 is used.
DRb.start_service("druby://localhost:0") # this allows Ruby to do some magical stuff so you can pass an output stream over DRb.

This is the public facing method that is served up by DRb. To use it from the client side (in a testing framework):
def run(argv, stderr, stdout)
  puts "Running tests with args #{argv.inspect}..."
  result = run_strategy.run(argv, stderr, stdout)
  puts "Done.\n\n"
  result
end