Module: ZerigoDNS

Defined in:
lib/zerigodns.rb,
lib/zerigodns/base.rb,
lib/zerigodns/config.rb

Defined Under Namespace

Classes: Base, Config, Host, HostTemplate, Tools, Zone, ZoneTemplate

Class Method Summary collapse

Class Method Details

.configConfig

Instantiates and memoizes a new Config object

Returns:

  • (Config)

    the cached configuration instance



17
18
19
# File 'lib/zerigodns.rb', line 17

def config
  @config ||= Config.new
end

.configure {|Config| ... } ⇒ Object

Exposes a block with the Config instance

Yields:

  • (Config)

    the config instance



25
26
27
# File 'lib/zerigodns.rb', line 25

def configure
  yield config
end