Class: ForemanMaintain::Scenario::PreparationScenario
- Inherits:
-
ForemanMaintain::Scenario
- Object
- ForemanMaintain::Scenario
- ForemanMaintain::Scenario::PreparationScenario
- Defined in:
- lib/foreman_maintain/scenario.rb
Constant Summary
Constants included from Concerns::OsFacts
Concerns::OsFacts::FALLBACK_OS_RELEASE_FILE, Concerns::OsFacts::OS_RELEASE_FILE
Instance Attribute Summary collapse
-
#main_scenario ⇒ Object
readonly
Returns the value of attribute main_scenario.
Attributes inherited from ForemanMaintain::Scenario
Instance Method Summary collapse
-
#initialize(main_scenario) ⇒ PreparationScenario
constructor
A new instance of PreparationScenario.
- #steps ⇒ Object
Methods inherited from ForemanMaintain::Scenario
#add_step, #add_step_with_context, #add_steps, #add_steps_with_context, #before_scenarios, #compose, #executed_steps, #failed?, #filter_whitelisted, #info_warning?, inspect, #inspect, #load_step_states, new_from_hash, #passed?, #preparation_steps, #set_context_mapping, #steps_with_abort, #steps_with_error, #steps_with_info_warning, #steps_with_skipped, #steps_with_warning, #to_hash, #warning?
Methods included from Concerns::Finders
#check, #detector, #feature, #find_all_scenarios, #find_procedures, #find_scenarios, #procedure
Methods included from Concerns::Versions
#at_least_version?, #current_minor_version, #less_than_version?
Methods included from Concerns::ScenarioMetadata
Methods included from Concerns::SystemHelpers
#check_max_version, #check_min_version, #command_present?, #directory_empty?, #execute, #execute!, #execute?, #execute_runner, #execute_with_status, #file_exists?, #file_nonzero?, #find_dir_containing_file, #find_package, #find_symlinks, #foreman_plugin_name, #format_shell_args, #hammer_package, #hammer_plugin_name, #hostname, included, #package_manager, #package_version, #packages_action, #parse_csv, #parse_json, #proxy_plugin_name, #repository_manager, #ruby_prefix, #server?, #shellescape, #systemd_installed?, #version
Methods included from Concerns::OsFacts
#centos?, #cpu_cores, #deb_major_version, #debian?, #debian_or_ubuntu?, #el8?, #el?, #el_major_version, #el_short_name, #facts, #memory, #os_id, #os_id_like_list, #os_name, #os_release_file, #os_version, #os_version_codename, #os_version_id, #rhel?, #ubuntu?, #ubuntu_major_version
Methods included from Concerns::Logger
Constructor Details
#initialize(main_scenario) ⇒ PreparationScenario
Returns a new instance of PreparationScenario.
74 75 76 |
# File 'lib/foreman_maintain/scenario.rb', line 74 def initialize(main_scenario) @main_scenario = main_scenario end |
Instance Attribute Details
#main_scenario ⇒ Object (readonly)
Returns the value of attribute main_scenario.
72 73 74 |
# File 'lib/foreman_maintain/scenario.rb', line 72 def main_scenario @main_scenario end |
Instance Method Details
#steps ⇒ Object
78 79 80 |
# File 'lib/foreman_maintain/scenario.rb', line 78 def steps @steps ||= main_scenario.preparation_steps.find_all(&:necessary?) end |