class SPSPubLogDRbServer
Public Class Methods
start(host: '0.0.0.0', port: '9090', sps: {host: 'sps2', port: 59100 })
click to toggle source
# File lib/spspublog_drb_server.rb, line 11 def self.start(host: '0.0.0.0', port: '9090', sps: {host: 'sps2', port: 59100 }) sps = SPSPubLog.new host: sps[:host], port: sps[:port] DRb.start_service "druby://#{host}:#{port}", sps DRb.thread.join end