Class: ForemanMaintain::Cli::SelfUpgradeCommand
- Inherits:
-
Base
- Object
- Clamp::Command
- Base
- ForemanMaintain::Cli::SelfUpgradeCommand
show all
- Defined in:
- lib/foreman_maintain/cli/self_upgrade_command.rb
Instance Attribute Summary
Attributes inherited from Base
#runner
Instance Method Summary
collapse
Methods inherited from Base
#available_checks, #available_procedures, available_tags, #available_tags, completion_map, completion_types, dashize, #dashize, delete_duplicate_assumeyes_if_any, interactive_option, label_option, #label_string, option, #option_wrapper, parameter, #print_check_info, #reporter, #run_scenario, #run_scenarios_and_exit, service_options, subcommand, #tag_string, tags_option, #underscorize
#logger
#check, #detector, #feature, #find_all_scenarios, #find_checks, #find_procedures, #find_scenarios, #procedure
Instance Method Details
#execute ⇒ Object
7
8
9
|
# File 'lib/foreman_maintain/cli/self_upgrade_command.rb', line 7
def execute
run_scenario(upgrade_scenario, upgrade_rescue_scenario)
end
|
#upgrade_rescue_scenario ⇒ Object
17
18
19
20
21
|
# File 'lib/foreman_maintain/cli/self_upgrade_command.rb', line 17
def upgrade_rescue_scenario
Scenarios::SelfUpgradeRescue.new(
maintenance_repo_label: maintenance_repo_label
)
end
|
#upgrade_scenario ⇒ Object
11
12
13
14
15
|
# File 'lib/foreman_maintain/cli/self_upgrade_command.rb', line 11
def upgrade_scenario
Scenarios::SelfUpgrade.new(
maintenance_repo_label: maintenance_repo_label
)
end
|