Sha256: 0af2e99140658010b50b5e02ccc5bf417fafa680acde0ddaecd240e7641a7227

Contents?: true

Size: 679 Bytes

Versions: 8

Compression:

Stored size: 679 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(argv, stderr, stdout, exit=true, warn_if_no_files=true)
        begin
          DRb.start_service
          rails_spec_server = DRbObject.new_with_uri("druby://localhost:8989")
          rails_spec_server.run(argv, stderr, stdout)
        rescue DRb::DRbConnError
          stderr.puts "No server is running"
          exit 1 if exit
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
puppet-0.22.4 test/lib/spec/runner/drb_command_line.rb
puppet-0.23.0 test/lib/spec/runner/drb_command_line.rb
puppet-0.23.2 test/lib/spec/runner/drb_command_line.rb
puppet-0.23.1 test/lib/spec/runner/drb_command_line.rb
riess-0.0.8 vendor/rspec-0.8.2/lib/spec/runner/drb_command_line.rb
rspec-0.8.1 lib/spec/runner/drb_command_line.rb
rspec-0.8.0 lib/spec/runner/drb_command_line.rb
rspec-0.8.2 lib/spec/runner/drb_command_line.rb