Module: DNSResolver

Extended by:
DNSResolver
Included in:
DNSResolver
Defined in:
lib/dnsresolver.rb,
lib/dnsresolver/config.rb,
lib/dnsresolver/logger.rb,
lib/dnsresolver/resolver.rb,
lib/dnsresolver/exceptions.rb

Defined Under Namespace

Modules: Config, Exceptions, Logger Classes: Resolver

Instance Method Summary collapse

Instance Method Details

#generate_uuidObject



16
17
18
# File 'lib/dnsresolver.rb', line 16

def generate_uuid
  UUID.generator.generate
end

#start!Object



20
21
22
23
# File 'lib/dnsresolver.rb', line 20

def start!
  dnsresolver = DNSResolver::Resolver.new Config.settings[:nameservers], Config.settings
  Celluloid::Actor[Config.settings[:registry_name].to_sym] = dnsresolver
end