Gets all IP addresses for name
from the hosts file.
Creates a new DNS
resolver. See Resolv::DNS.new
for argument details.
Yields the created DNS
resolver to the block, if given, otherwise returns it.
Sets the resolver timeouts. This may be a single positive number or an array of positive numbers representing timeouts in seconds. If an array is specified, a DNS
request will retry and wait for each successive interval in the array until a successful response is received. Specifying nil
reverts to the default timeouts:
Example:
dns.timeouts = 3
Closes the DNS
resolver.
Gets all IP addresses for name
from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Registers for notifications of event ev
on the proxied TupleSpace
. See TupleSpace#notify
Creates a singleton RingFinger
and looks for a RingServer
. Returns the created RingFinger
.
Returns the first advertised TupleSpace
.
Called by TupleSpace
to notify this NotifyTemplateEntry
of a new event.
Retrieves a notification. Raises RequestExpiredError
when this NotifyTemplateEntry
expires.
Registers for notifications of event
. Returns a NotifyTemplateEntry
. See NotifyTemplateEntry
for examples of how to listen for notifications.
event
can be:
A tuple was added
A tuple was taken or moved
A tuple was lost after being overwritten or expiring
The TupleSpace
will also notify you of the ‘close’ event when the NotifyTemplateEntry
has expired.
True when the gem has been activated
Override to provide details of the arguments a command takes. It should return a left-justified string, one argument per line.
For example:
def usage "#{program_name} FILE [FILE ...]" end def arguments "FILE name of file to find" end
Reset the authoritative instance of the command manager.
Merges the requirements of other
into this dependency