Parent

Methods

Class Index [+]

Quicksearch

RSpec::Core::DRbCommandLine

Public Class Methods

new(options) click to toggle source
   # File lib/rspec/core/drb_command_line.rb, line 4
4:       def initialize(options)
5:         @options = options
6:       end

Public Instance Methods

drb_port() click to toggle source
    # File lib/rspec/core/drb_command_line.rb, line 8
 8:       def drb_port
 9:         @options.options[:drb_port] || ENV['RSPEC_DRB'] || 8989
10:       end
run(err, out) click to toggle source
    # File lib/rspec/core/drb_command_line.rb, line 12
12:       def run(err, out)
13:         begin
14:           DRb.start_service("druby://localhost:0")
15:         rescue SocketError, Errno::EADDRNOTAVAIL
16:           DRb.start_service("druby://:0")
17:         end
18:         spec_server = DRbObject.new_with_uri("druby://127.0.0.1:#{drb_port}")
19:         spec_server.run(@options.drb_argv, err, out)
20:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.