Sha256: 82366765df995a09360786a4cc526b6a2f7f992b72e22899b0868e310e800dba
Contents?: true
Size: 786 Bytes
Versions: 2
Compression:
Stored size: 786 Bytes
Contents
module RSpec module Core class DRbCommandLine def initialize(argv) @options = RSpec::Core::ConfigurationOptions.new(argv) end def drb_port @options.options[:drb_port] || ENV['RSPEC_DRB'] || 8989 end def run(err, out) begin begin DRb.start_service("druby://localhost:0") rescue SocketError, Errno::EADDRNOTAVAIL DRb.start_service("druby://:0") end spec_server = DRbObject.new_with_uri("druby://127.0.0.1:#{drb_port}") spec_server.run(@options.drb_argv, err, out) true rescue DRb::DRbConnError err.puts "No DRb server is running. Running in local process instead ..." false end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rspec-core-2.0.0.beta.11 | lib/rspec/core/drb_command_line.rb |
rspec-core-2.0.0.beta.10 | lib/rspec/core/drb_command_line.rb |