Class: Akephalos::Server
- Inherits:
-
Object
- Object
- Akephalos::Server
- Defined in:
- lib/akephalos/server.rb
Overview
Akephalos::Server is used by ‘akephalos –server` to start a DRb server serving Akephalos::ClientManager.
Class Method Summary collapse
-
.start!(port) ⇒ Object
Start DRb service for Akephalos::ClientManager.
Class Method Details
.start!(port) ⇒ Object
Start DRb service for Akephalos::ClientManager.
56 57 58 59 60 |
# File 'lib/akephalos/server.rb', line 56 def self.start!(port) abort_on_parent_exit! DRb.start_service("druby://127.0.0.1:#{port}", ClientManager) DRb.thread.join end |