Sha256: b1aacf6ed0d0f0270260f2c253d5328d89658c5c4ef9a3e9dbdeca979bfc7513
Contents?: true
Size: 656 Bytes
Versions: 11
Compression:
Stored size: 656 Bytes
Contents
module TestServer class Client class << self def run(*args) options = args.last.is_a?(Hash) ? args.pop : {} options = {:runner => 'TestServer::Runner::TestUnit'}.merge(options) argv, stderr, stdout = *args argv ||= ARGV stderr ||= STDERR stdout ||= STDOUT begin DRb.start_service server = DRbObject.new_with_uri("druby://127.0.0.1:8989") server.run(argv, stderr, stdout, options) rescue DRb::DRbConnError => e # options.error_stream.puts "No server is running" puts "No server is running" end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems