mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-22 00: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
|
module Generator
|
||||||
class Bind
|
class Bind
|
||||||
# @param domain [String]
|
# @param domain [String]
|
||||||
# @param config [Hash{String => Object}]
|
# @param updater_params [Hash{String => Object}]
|
||||||
def initialize(domain, config)
|
def initialize(domain, updater_params)
|
||||||
@domain = domain
|
@domain = domain
|
||||||
@ttl = config['ttl']
|
@ttl = updater_params['ttl']
|
||||||
@dns = config['dns']
|
@dns = updater_params['dns']
|
||||||
@email_addr = config['email_addr']
|
@email_addr = updater_params['email_addr']
|
||||||
@additional_zone_content = config['additional_zone_content']
|
@additional_zone_content = updater_params['additional_zone_content']
|
||||||
end
|
end
|
||||||
|
|
||||||
# @param db [Dyndnsd::Database]
|
# @param db [Dyndnsd::Database]
|
||||||
|
@ -4,11 +4,11 @@ module Dyndnsd
|
|||||||
module Updater
|
module Updater
|
||||||
class CommandWithBindZone
|
class CommandWithBindZone
|
||||||
# @param domain [String]
|
# @param domain [String]
|
||||||
# @param config [Hash{String => Object}]
|
# @param updater_params [Hash{String => Object}]
|
||||||
def initialize(domain, config)
|
def initialize(domain, updater_params)
|
||||||
@zone_file = config['zone_file']
|
@zone_file = updater_params['zone_file']
|
||||||
@command = config['command']
|
@command = updater_params['command']
|
||||||
@generator = Generator::Bind.new(domain, config)
|
@generator = Generator::Bind.new(domain, updater_params)
|
||||||
end
|
end
|
||||||
|
|
||||||
# @param db [Dyndnsd::Database]
|
# @param db [Dyndnsd::Database]
|
||||||
|
Loading…
Reference in New Issue
Block a user