Class: Spec::Runner::DrbCommandLine
- Defined in:
- lib/spec/runner/drb_command_line.rb
Overview
Facade to run specs by connecting to a DRB server
Class Method Summary collapse
-
.run(argv, stderr, stdout, exit = true, warn_if_no_files = true) ⇒ Object
Runs specs on a DRB server.
Class Method Details
.run(argv, stderr, stdout, exit = true, warn_if_no_files = true) ⇒ Object
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.
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/spec/runner/drb_command_line.rb', line 9 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 |