Class: Saber::AutoFetcher::DRbClient

Inherits:
Object
  • Object
show all
Defined in:
lib/saber/autofetcher/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDRbClient

Returns a new instance of DRbClient.



55
56
57
58
59
# File 'lib/saber/autofetcher/client.rb', line 55

def initialize
  DRb.start_service
  @server = DRbObject.new_with_uri(Rc.drb_uri)
  Saber.ui.debug ">> DRbClient connected to #{Rc.drb_uri}"
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



53
54
55
# File 'lib/saber/autofetcher/client.rb', line 53

def server
  @server
end

Instance Method Details

#add(*names) ⇒ Object



61
62
63
64
# File 'lib/saber/autofetcher/client.rb', line 61

def add(*names)
  Saber.ui.debug "DRbClient-ADD #{names.inspect}"
  server.add(*names)
end