lib/dyndnsd/generator/bind.rb in dyndnsd-2.0.0 vs lib/dyndnsd/generator/bind.rb in dyndnsd-2.1.0
- old
+ new
@@ -1,16 +1,20 @@
module Dyndnsd
module Generator
class Bind
+ # @param domain [String]
+ # @param config [Hash{String => Object}]
def initialize(domain, config)
@domain = domain
@ttl = config['ttl']
@dns = config['dns']
@email_addr = config['email_addr']
@additional_zone_content = config['additional_zone_content']
end
+ # @param db [Dyndnsd::Database]
+ # @return [String]
def generate(db)
out = []
out << "$TTL #{@ttl}"
out << "$ORIGIN #{@domain}."
out << ''