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

Prettify config

This commit is contained in:
cn 2013-04-27 14:12:04 +02:00
parent 755a448174
commit b6bc37c042

View File

@ -108,8 +108,8 @@ module Dyndnsd
config = YAML::load(File.open(config_file, 'r') { |f| f.read }) config = YAML::load(File.open(config_file, 'r') { |f| f.read })
db = Database.new(config['db_file']) db = Database.new(config['db'])
updater = Updater::CommandWithBindZone.new(config['updater_params']) if config['updater'] == 'command_with_bind_zone' updater = Updater::CommandWithBindZone.new(config['updater']['params']) if config['updater']['name'] == 'command_with_bind_zone'
responder = Responder::RestStyle.new responder = Responder::RestStyle.new
app = Daemon.new(config, db, updater, responder) app = Daemon.new(config, db, updater, responder)