Commit d188224c authored by georg's avatar georg

Schleuder::Conf: Introduce ERB templating in config files

Relates #271
parent abf07e66
require 'erb'
module Schleuder
class Conf
include Singleton
......@@ -120,7 +122,7 @@ module Schleuder
def load_config_file(filename)
file = Pathname.new(filename)
if file.readable?
YAML.load(file.read)
YAML.load(ERB.new(file.read).result)
else
{}
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment