Class Simp::Cli::Commands::Config
In: lib/simp/cli/commands/config.rb
Parent: Simp::Cli

Handle CLI interactions for "simp config"

Methods

Included Modules

Simp::Cli::Config::Logging

Constants

DEFAULT_ANSWERS_OUTFILE = File.join(SIMP_CLI_HOME, 'simp_conf.yaml')
DEFAULT_HIERA_OUTFILE = "#{::Utils.puppet_info[:simp_environment_path]}/hieradata/simp_config_settings.yaml"
SIMP_CONFIG_DEFAULT_OPTIONS = { :verbose => 0, :noninteractive => 0, # TODO: between these two, we should choose better names :dry_run => false, :scenario => nil, :answers_input_file => nil, :answers_output_file => File.expand_path( DEFAULT_ANSWERS_OUTFILE ), :puppet_system_file => File.expand_path( DEFAULT_HIERA_OUTFILE ), :use_safety_save => true, :autoaccept_safety_save => false, :fail_on_missing_answers => false
INTRO_TEXT = <<EOM #{'='*80} `simp config` will take you through preparing your infrastructure for bootstrap based on a pre-defined SIMP scenario. These preparations include optional and required general system setup and required Puppet configuration. All changes will be logged to EOM

Public Class methods

Resets options to original values. This ugly method is needed for unit-testing, in which multiple occurrences of the self.run method are called with different options. FIXME Variables set here are really class variables, not instance variables.

[Validate]