lib/kafo/kafo_configure.rb in kafo-0.6.5 vs lib/kafo/kafo_configure.rb in kafo-0.6.6

- old
+ new

@@ -82,13 +82,15 @@ Logger.setup_verbose else @progress_bar = self.class.config.app[:colors] ? ProgressBars::Colored.new : ProgressBars::BlackWhite.new end - unless SystemChecker.check - puts "Your system does not meet configuration criteria" - self.class.exit(:invalid_system) + unless skip_checks_i_know_better? + unless SystemChecker.check + puts "Your system does not meet configuration criteria" + self.class.exit(:invalid_system) + end end self.class.hooking.execute(:pre_validations) if interactive? wizard = Wizard.new(self) @@ -98,11 +100,11 @@ puts "Error during configuration, exiting" self.class.exit(:invalid_values) end end - if dont_save_answers? + if dont_save_answers? || noop? self.class.temp_config_file = temp_config_file store_params(temp_config_file) else store_params end @@ -205,9 +207,10 @@ self.class.app_option ['-i', '--interactive'], :flag, 'Run in interactive mode' self.class.app_option '--log-level', 'LEVEL', 'Log level for log file output', :default => config.app[:log_level] self.class.app_option ['-n', '--noop'], :flag, 'Run puppet in noop mode?', :default => false + self.class.app_option ['-s', '--skip-checks-i-know-better'], :flag, 'Skip all system checks', :default => false self.class.app_option ['-v', '--verbose'], :flag, 'Display log on STDOUT instead of progressbar' self.class.app_option ['-l', '--verbose-log-level'], 'LEVEL', 'Log level for verbose mode output', :default => 'info' end