Class: SPSPubLogDRbClient

Inherits:
Object
  • Object
show all
Defined in:
lib/spspublog_drb_client.rb

Instance Method Summary collapse

Constructor Details

#initialize(host: '127.0.0.1', port: '90900') ⇒ SPSPubLogDRbClient

Returns a new instance of SPSPubLogDRbClient.



10
11
12
13
14
15
16
# File 'lib/spspublog_drb_client.rb', line 10

def initialize(host: '127.0.0.1', port: '90900')

  DRb.start_service
  
  @log = DRbObject.new nil, "druby://#{host}:#{port}"

end

Instance Method Details

#debug(s) ⇒ Object



22
23
24
# File 'lib/spspublog_drb_client.rb', line 22

def debug(s)
  @log.debug s
end

#info(s) ⇒ Object



18
19
20
# File 'lib/spspublog_drb_client.rb', line 18

def info(s)
  @log.info s
end