module ServicesTestServer
Constants
- MissingConfiguration
- VERSION
Public Class Methods
control_port()
click to toggle source
# File lib/services_test_server.rb, line 10 def self.control_port @control_port || raise(MissingConfiguration.new(<<-MSG)) You must configure the port ServicesTestServer will start on, ie: ServicesTestServer.control_port = 8000 MSG end
control_port=(port)
click to toggle source
# File lib/services_test_server.rb, line 6 def self.control_port=(port) @control_port = port end
logger()
click to toggle source
# File lib/services_test_server.rb, line 17 def self.logger @logger ||= Logger.new(File.open(File::NULL, 'w')) end
logger=(logger)
click to toggle source
# File lib/services_test_server.rb, line 21 def self.logger=(logger) @logger = logger end
start()
click to toggle source
# File lib/services_test_server.rb, line 29 def self.start DbController.only_one_connection DRb.start_service(url, DbController.new) logger.info "DbController service started on #{url}" end
url()
click to toggle source
# File lib/services_test_server.rb, line 25 def self.url "druby://localhost:#{control_port}" end