Class: God::Socket

Class | God::Socket
In: | lib/god/socket.rb
Parent: | Object

The God::Server oversees the DRb server which dishes out info on this God daemon.

### Methods

method_missing new ping socket socket socket_file socket_file stop

### Attributes

port | [R] |

### Public Class methods

new(port = nil)

Create a new Server and star the DRb server

      +port+ is the port on which to start the DRb service (default nil)

socket(port)

The address of the socket for a given port

      +port+ is the port number

Returns String (drb address)

socket_file(port)

The location of the socket for a given port

      +port+ is the port number

Returns String (file location)

### Public Instance methods

method_missing(*args, &block)

Forward API calls to God

Returns whatever the forwarded call returns

ping()

Returns true

socket()

The address of the socket for this Server

Returns String (drb address)

socket_file()

The location of the socket for this Server

Returns String (file location)

stop()

Stop the DRb server and delete the socket file

Returns nothing

[Validate]