Class: RseProxy::Server
- Inherits:
-
Object
- Object
- RseProxy::Server
- Defined in:
- lib/rse.rb
Instance Method Summary collapse
-
#initialize(host: 'rse.home', port: '61000', servers: [], log: nil, spshost: 'sps.home') ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(host: 'rse.home', port: '61000', servers: [], log: nil, spshost: 'sps.home') ⇒ Server
Returns a new instance of Server.
182 183 184 185 186 187 188 |
# File 'lib/rse.rb', line 182 def initialize(host: 'rse.home', port: '61000', servers: [], log: nil, spshost: 'sps.home') @host, @port, @servers, @log = host, port, servers, log @spshost = spshost end |
Instance Method Details
#start ⇒ Object
190 191 192 193 194 195 196 |
# File 'lib/rse.rb', line 190 def start() DRb.start_service "druby://#{@host}:#{@port}", PassThru.new(@servers, log: @log) DRb.thread.join end |