Sha256: 2e807cbf9c3c71a8a17c358bc0ea9df7e04a91a0bae7789b0a09bdd75021bc5c

Contents?: true

Size: 652 Bytes

Versions: 46

Compression:

Stored size: 652 Bytes

Contents

require "drb/drb"

module Spec
  module Runner
    # Facade to run specs by connecting to a DRB server
    class DrbCommandLine
      # Runs specs on a DRB server. Note that this API is similar to that of
      # CommandLine - making it possible for clients to use both interchangeably.
      def self.run(options)
        begin
          DRb.start_service
          spec_server = DRbObject.new_with_uri("druby://127.0.0.1:8989")
          spec_server.run(options.argv, options.error_stream, options.output_stream)
        rescue DRb::DRbConnError => e
          options.error_stream.puts "No server is running"
        end
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 10 rubygems

Version Path
dchelimsky-rspec-1.1.10 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11.1 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11.2 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11.3 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11.4 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11.5 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11.6 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11.7 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.11 lib/spec/runner/drb_command_line.rb
dchelimsky-rspec-1.1.12 lib/spec/runner/drb_command_line.rb
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec/lib/spec/runner/drb_command_line.rb
newbamboo-evented-rspec-1.1.12 lib/spec/runner/drb_command_line.rb
newbamboo-rspec-1.1.12 lib/spec/runner/drb_command_line.rb
merb-core-1.1.3 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/drb_command_line.rb
merb-core-1.1.2 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/drb_command_line.rb
merb-core-1.1.1 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/drb_command_line.rb
merb-core-1.1.0 spec10/public/webrat/test_app/gems/gems/rspec-1.1.11/lib/spec/runner/drb_command_line.rb