diff --git a/lib/logan/inc/main.rb b/lib/logan/inc/main.rb index 6c12915..eb9af42 100644 --- a/lib/logan/inc/main.rb +++ b/lib/logan/inc/main.rb @@ -72,8 +72,8 @@ module LogAn::Inc # Open configs begin configs = @conf[:configs] = {} - %w[hosts files].each {|key| configs[key.to_sym] = config( @etc, key) {|l|l} } - configs[:fileparser] = config( @etc, 'fileparser') {|val| Safebox.run "[#{val}]"} + %w[hosts files].each {|key| configs[key.to_sym] = config( @etc, key) {|l| l } } + configs[:fileparser] = config @etc, 'fileparser', &Safebox.method( :eval) LogAn::Inc::SID0.config = configs end