lib/bolt/cli.rb
# Completes the setup process by configuring Bolt and issuing warnings
Completes the setup process by configuring Bolt and issuing warnings
Completes the setup process by configuring Bolt and issuing warnings
def finalize_setup
      Bolt::Logger.configure(config.log, config.color)
      Bolt::Logger.analytics = analytics
      config.check_path_case('modulepath', config.modulepath)
      config.project.check_deprecated_file
      config_loaded
      config.warnings.each { |warning| @logger.warn(warning[:msg]) }
      @parser_deprecations.each { |dep| Bolt::Logger.deprecation_warning(dep[:type], dep[:msg]) }
      config.deprecations.each { |dep| Bolt::Logger.deprecation_warning(dep[:type], dep[:msg]) }
      warn_inventory_overrides_cli(options)
      options
    rescue Bolt::Error => e
      outputter.fatal_error(e)
      raise e
    end
def finalize_setup Bolt :: Logger . configure ( config . log , config . color ) Bolt :: Logger . analytics = analytics config . check_path_case ( 'modulepath' , config . modulepath ) config . project . check_deprecated_file config_loaded config . warnings . each { | warning | @logger . warn ( warning [ :msg ] ) } @parser_deprecations . each { | dep | Bolt :: Logger . deprecation_warning ( dep [ :type ] , dep [ :msg ] ) } config . deprecations . each { | dep | Bolt :: Logger . deprecation_warning ( dep [ :type ] , dep [ :msg ] ) } warn_inventory_overrides_cli ( options ) options rescue Bolt :: Error => e outputter . fatal_error ( e ) raise e end
Completes the setup process by configuring Bolt and issuing warnings
Completes the setup process by configuring Bolt and issuing warnings
# Logger must be configured before checking path case and project file, otherwise warnings will not display # Log the file paths for loaded config files # Display warnings created during parser and config initialization