Class: Akephalos::Server

Inherits:
Object
  • Object
show all
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

Class Method Details

.start!(port) ⇒ Object

Start DRb service for Akephalos::ClientManager.

Parameters:

  • port (String)

    attach server to



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