Class: ForemanMaintain::Cli::MainCommand
- Includes:
- ForemanMaintain::Concerns::Logger
- Defined in:
- lib/foreman_maintain/cli.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from ForemanMaintain::Concerns::Logger
Methods inherited from Base
#available_checks, #available_procedures, #available_tags, available_tags, #dashize, dashize, delete_duplicate_assumeyes_if_any, interactive_option, label_option, #label_string, option, #option_wrapper, #print_check_info, #reporter, #run_scenario, service_options, #tag_string, tags_option, #underscorize
Methods included from ForemanMaintain::Concerns::Finders
#check, #detector, #feature, #find_all_scenarios, #find_checks, #find_procedures, #find_scenarios, #procedure
Instance Method Details
#run(*arguments) ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/foreman_maintain/cli.rb', line 24 def run(*arguments) logger.info("Running foreman-maintain command with arguments #{arguments.inspect}") begin super @exit_code = 0 rescue Error::UsageError => e process_usage_error(e) rescue StandardError => e process_standard_error(e) end return @exit_code ensure log_exit_code_info(@exit_code) end |