String-based config for files and hosts. Safebox-eval for fileparser

master
Denis Knauf 2010-03-30 17:31:35 +02:00
parent 3fa3ac495d
commit c4d3e75223
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ module LogAn::Inc
# Open configs
begin
configs = @conf[:configs] = {}
%w[hosts files].each {|key| configs[key.to_sym] = config( @etc, key) }
%w[hosts files].each {|key| configs[key.to_sym] = config( @etc, key) {|l|l} }
configs[:fileparser] = config( @etc, 'fileparser') {|val| Safebox.run "[#{val}]"}
LogAn::Inc::SID0.config = configs
end