Facade to run specs by connecting to a DRB server
# File lib/spec/runner/drb_command_line.rb, line 8 8: def self.port(options) 9: (options.drb_port || ENV["RSPEC_DRB"] || 8989).to_i 10: end
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 14 14: def self.run(options) 15: begin 16: begin; DRb.start_service("druby://localhost:0"); rescue SocketError, Errno::EADDRNOTAVAIL; DRb.start_service("druby://:0"); end 17: spec_server = DRbObject.new_with_uri("druby://127.0.0.1:#{port(options)}") 18: spec_server.run(options.argv, options.error_stream, options.output_stream) 19: true 20: rescue DRb::DRbConnError 21: options.error_stream.puts "No server is running" 22: false 23: end 24: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.