Sha256: 19489ad4e14c2b184129689fb5b9420ec88f7712d9489abefe968697c6fa8737

Contents?: true

Size: 565 Bytes

Versions: 150

Compression:

Stored size: 565 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
          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)
      end
    end
  end
end

Version data entries

150 entries across 95 versions & 10 rubygems

Version Path
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.5 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.4 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.3 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.2 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.1 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.7.0 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/rspec-core-2.10.1/lib/rspec/core/drb_command_line.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.6.9 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.6.8 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb
classiccms-0.6.7 vendor/bundle/gems/rspec-core-2.9.0/lib/rspec/core/drb_command_line.rb
classiccms-0.6.6 vendor/bundle/gems/rspec-core-2.10.0/lib/rspec/core/drb_command_line.rb