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