Class: SPSPubLogDRbServer
- Inherits:
-
Object
- Object
- SPSPubLogDRbServer
- Defined in:
- lib/spspublog_drb_server.rb
Class Method Summary collapse
Class Method Details
.start(host: '0.0.0.0', port: '90900', sps: {host: 'sps2', port: 59100 }) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/spspublog_drb_server.rb', line 11 def self.start(host: '0.0.0.0', port: '90900', 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 |