1
0
mirror of https://github.com/cmur2/dyndnsd.git synced 2024-12-21 14:54:22 +01:00

updater: improve parameter name

This commit is contained in:
cn 2020-07-18 14:45:56 +02:00
parent 33b8325a92
commit 0cec44893d
2 changed files with 11 additions and 11 deletions

View File

@ -4,13 +4,13 @@ module Dyndnsd
module Generator
class Bind
# @param domain [String]
# @param config [Hash{String => Object}]
def initialize(domain, config)
# @param updater_params [Hash{String => Object}]
def initialize(domain, updater_params)
@domain = domain
@ttl = config['ttl']
@dns = config['dns']
@email_addr = config['email_addr']
@additional_zone_content = config['additional_zone_content']
@ttl = updater_params['ttl']
@dns = updater_params['dns']
@email_addr = updater_params['email_addr']
@additional_zone_content = updater_params['additional_zone_content']
end
# @param db [Dyndnsd::Database]

View File

@ -4,11 +4,11 @@ module Dyndnsd
module Updater
class CommandWithBindZone
# @param domain [String]
# @param config [Hash{String => Object}]
def initialize(domain, config)
@zone_file = config['zone_file']
@command = config['command']
@generator = Generator::Bind.new(domain, config)
# @param updater_params [Hash{String => Object}]
def initialize(domain, updater_params)
@zone_file = updater_params['zone_file']
@command = updater_params['command']
@generator = Generator::Bind.new(domain, updater_params)
end
# @param db [Dyndnsd::Database]