Class: Hoodoo::Services::Discovery::ByDRb

Inherits:
Hoodoo::Services::Discovery show all
Defined in:
lib/hoodoo/services/discovery/discoverers/by_drb/by_drb.rb,
lib/hoodoo/services/discovery/discoverers/by_drb/drb_server.rb

Overview

Also just used as a namespace here

Defined Under Namespace

Classes: DRbServer

Constant Summary collapse

FRONT_OBJECT =

Singleton “Front object” for the DRB service used in local development.

Hoodoo::Services::Discovery::ByDRb::DRbServer.new
LOCAL_ACL =

Only allow connections from 127.0.0.1.

ACL.new( %w[
  deny all
  allow ::1
  allow fe80::1%lo0
  allow 127.0.0.1
] )

Instance Method Summary collapse

Methods inherited from Hoodoo::Services::Discovery

#announce, #discover, #initialize, #is_local?

Constructor Details

This class inherits a constructor from Hoodoo::Services::Discovery

Instance Method Details

#flush_services_for_testObject

Intended for testing only - flushes the records held in the DRb service.



27
28
29
# File 'lib/hoodoo/services/discovery/discoverers/by_drb/by_drb.rb', line 27

def flush_services_for_test
  drb_service().flush()
end