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.



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

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



59
60
61
# File 'lib/saber/autofetcher/client.rb', line 59

def server
  @server
end

Instance Method Details

#add(*names) ⇒ Object



67
68
69
70
# File 'lib/saber/autofetcher/client.rb', line 67

def add(*names)
  Saber.ui.say "ADD #{names}"
  server.add(*names)
end