lib/kafo/kafo_configure.rb in kafo-0.0.2 vs lib/kafo/kafo_configure.rb in kafo-0.0.3
- old
+ new
@@ -52,11 +52,11 @@
puts "Error during configuration, exiting"
exit(21)
end
end
- store_params
+ store_params unless dont_save_answers?
run_installation
end
private
@@ -75,12 +75,14 @@
param.set_value_by_config(config)
end
end
def set_options
- self.class.option ['-i', '--interactive'], :flag, 'Run in interactive mode?'
- self.class.option ['-v', '--verbose'], :flag, 'Display log on STDOUT instead of progressbar?'
+ self.class.option ['-i', '--interactive'], :flag, 'Run in interactive mode'
+ self.class.option ['-v', '--verbose'], :flag, 'Display log on STDOUT instead of progressbar'
self.class.option ['-n', '--noop'], :flag, 'Run puppet in noop mode?', :default => false
+ self.class.option ['-d', '--dont-save-answers'], :flag, 'Skip saving answers to answers.yaml?',
+ :default => false
config.modules.each do |mod|
self.class.option d("--[no-]enable-#{mod.name}"),
:flag,
"Enable puppet module #{mod.name}?",