lib/kafo/configuration.rb in kafo-0.3.8 vs lib/kafo/configuration.rb in kafo-0.3.9
- old
+ new
@@ -11,10 +11,11 @@
!`which tput 2> /dev/null`.empty? && `tput colors`.to_i > 0
end
DEFAULT = {
:log_dir => '/var/log/kafo',
+ :log_name => 'configuration.log',
:log_level => 'info',
:no_prefix => false,
:mapping => {},
:answer_file => '/etc/kafo/kafo.yaml',
:installer_dir => '.',
@@ -119,10 +120,10 @@
end
def params
params = modules.map(&:params).flatten
params = params.select { |p| p.default != 'UNSET' }
- params.map { |param| "#{param.default}" }.join(',')
+ params.map { |param| "#{param.dump_default}" }.join(',')
end
def format(data)
data.gsub('!ruby/sym ', ':')
end