Sha256: c8306d27718b52e9cf67633b1f543ca7bbff2b21ec6a34df04f0595574a5dac4

Contents?: true

Size: 677 Bytes

Versions: 6

Compression:

Stored size: 677 Bytes

Contents

require "drb/drb"
# This code was taken from the RSpec project and slightly modified.

module Cucumber
  module Cli
    # Runs features on a DRB server, originally created with Spork compatibility in mind.
    class DRbClient
      def self.run(args, error_stream, out_stream)
        begin
          # See http://redmine.ruby-lang.org/issues/show/496 as to why we specify localhost:0
          DRb.start_service("druby://localhost:0")
          feature_server = DRbObject.new_with_uri("druby://127.0.0.1:8990")
          feature_server.run(args, error_stream, out_stream)
          true
        rescue DRb::DRbConnError
          false
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
aslakhellesoy-cucumber-0.3.10 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.11.1 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.11 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.9.5 lib/cucumber/cli/drb_client.rb
cucumber-0.3.10 lib/cucumber/cli/drb_client.rb
cucumber-0.3.11 lib/cucumber/cli/drb_client.rb