class DRbRegServer

Public Class Methods

new(reg_filepath, host: 'localhost', port: '59500') click to toggle source
# File lib/drb_reg_server.rb, line 74
def initialize(reg_filepath, host: 'localhost', port: '59500')

  @host, @port = host, port
  @reg = DWSRegistryWrapper.new reg_filepath

end

Public Instance Methods

start() click to toggle source
# File lib/drb_reg_server.rb, line 81
def start()

  DRb.start_service "druby://#{@host}:#{@port}", @reg
  DRb.thread.join

end