Sha256: 40d47be6cea121dc4634a92bdb4400739220e637ab425f8e4225dfa767a7aa24
Contents?: true
Size: 753 Bytes
Versions: 41
Compression:
Stored size: 753 Bytes
Contents
module RSpec module Core class DRbCommandLine def initialize(options) @options = options 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
41 entries across 41 versions & 4 rubygems