mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-21 04:54:22 +01:00
updater: improve parameter name
This commit is contained in:
parent
33b8325a92
commit
0cec44893d
@ -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]
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user