module DNSUpdater::Updaters

Container of updaters for each protocol

Module for DNS updater implementations

Module for DNS updater implementations

Module for DNS updater implementations

Public Class Methods

get(protocol) click to toggle source
# File lib/dnsupdater/updaters.rb, line 16
def self.get(protocol)
    @@Updaters[protocol]
end
getAllProtocols() click to toggle source
# File lib/dnsupdater/updaters.rb, line 20
def self.getAllProtocols
    @@Updaters.keys
end
getHostPort(protocol, config) click to toggle source
# File lib/dnsupdater/updaters.rb, line 24
def self.getHostPort(protocol, config)
    raise "Protocol '#{protocol}' not registered!" unless has?(protocol)

    @@Updaters[protocol].getHostPort(config)
end
has?(protocol) click to toggle source
# File lib/dnsupdater/updaters.rb, line 12
def self.has?(protocol)
    @@Updaters.key?(protocol)
end
register(protocol, updater) click to toggle source
# File lib/dnsupdater/updaters.rb, line 8
def self.register(protocol, updater)
    @@Updaters[protocol.downcase.to_sym] = updater
end