Sha256: 71b03f7f6e8ad44add41500d5364256e357cd9cdf7995ede762c833c69843a5d

Contents?: true

Size: 717 Bytes

Versions: 18

Compression:

Stored size: 717 Bytes

Contents

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

module Cucumber
  module Cli
    class DRbClientError < StandardError
    end
    # Runs features on a DRB server, originally created with Spork compatibility in mind.
    class DRbClient
      def self.run(args, error_stream, out_stream)
        # 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)
      rescue DRb::DRbConnError
        raise DRbClientError, "No DRb server is running."
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 6 rubygems

Version Path
aslakhellesoy-cucumber-0.3.11.200907091518 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.11.3 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.11.5 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.11.6 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.90 lib/cucumber/cli/drb_client.rb
aslakhellesoy-cucumber-0.3.92 lib/cucumber/cli/drb_client.rb
jwilger-cucumber-0.3.11.200906161550 lib/cucumber/cli/drb_client.rb
jwilger-cucumber-0.3.11.200907091518 lib/cucumber/cli/drb_client.rb
kosmas58-cucumber-0.3.11.3 lib/cucumber/cli/drb_client.rb
kosmas58-cucumber-0.3.11.6 lib/cucumber/cli/drb_client.rb
kosmas58-cucumber-0.3.90 lib/cucumber/cli/drb_client.rb
kosmas58-cucumber-0.3.92 lib/cucumber/cli/drb_client.rb
square-cucumber-0.3.12.2 lib/cucumber/cli/drb_client.rb
squirrel-cucumber-0.3.12.1 lib/cucumber/cli/drb_client.rb
squirrel-cucumber-0.3.12 lib/cucumber/cli/drb_client.rb
cucumber-0.3.90 lib/cucumber/cli/drb_client.rb
cucumber-0.3.91 lib/cucumber/cli/drb_client.rb
cucumber-0.3.92 lib/cucumber/cli/drb_client.rb