From b6bc37c042515625565868017b9bdc028641b808 Mon Sep 17 00:00:00 2001 From: cn Date: Sat, 27 Apr 2013 14:12:04 +0200 Subject: [PATCH] Prettify config --- lib/dyndnsd.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/dyndnsd.rb b/lib/dyndnsd.rb index e8720c4..9ab4021 100644 --- a/lib/dyndnsd.rb +++ b/lib/dyndnsd.rb @@ -108,8 +108,8 @@ module Dyndnsd config = YAML::load(File.open(config_file, 'r') { |f| f.read }) - db = Database.new(config['db_file']) - updater = Updater::CommandWithBindZone.new(config['updater_params']) if config['updater'] == 'command_with_bind_zone' + db = Database.new(config['db']) + updater = Updater::CommandWithBindZone.new(config['updater']['params']) if config['updater']['name'] == 'command_with_bind_zone' responder = Responder::RestStyle.new app = Daemon.new(config, db, updater, responder)