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, interactive_option, label_option, #label_string, option, #print_check_info, #reporter, #run_scenario, #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
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/foreman_maintain/cli.rb', line 18 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 |