Sha256: 1d85bdb41ea7c87f53197f11b415156f67bba06137dcb059ddd987c14ebbcbf4
Contents?: true
Size: 500 Bytes
Versions: 12
Compression:
Stored size: 500 Bytes
Contents
module DCell # Directory of nodes connected to the DCell cluster module Directory extend self # Get the URL for a particular Node ID def get(node_id) DCell.registry.get_node node_id end alias_method :[], :get # Set the address of a particular Node ID def set(node_id, addr) DCell.registry.set_node node_id, addr end alias_method :[]=, :set # List all of the node IDs in the directory def all DCell.registry.nodes end end end
Version data entries
12 entries across 12 versions & 1 rubygems