Class: Saber::AutoFetcher::DRbClient
- Inherits:
-
Object
- Object
- Saber::AutoFetcher::DRbClient
- Defined in:
- lib/saber/autofetcher/client.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
- #add(*names) ⇒ Object
-
#initialize ⇒ DRbClient
constructor
A new instance of DRbClient.
Constructor Details
#initialize ⇒ DRbClient
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
#server ⇒ Object (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 |