Module: ForemanMaintain::Concerns::Finders
- Included in:
- ForemanMaintain::Check, ForemanMaintain::Cli::Base, ForemanMaintain::Cli::MaintenanceModeCommand, ForemanMaintain::Cli::ServiceCommand, Metadata::ClassMethods, SystemHelpers, Executable, Feature, Procedure, Scenario, Scenario, UpdateRunner, UpgradeRunner, UpgradeRunner
- Defined in:
- lib/foreman_maintain/concerns/finders.rb
Instance Method Summary collapse
- #check(label) ⇒ Object
- #detector ⇒ Object
- #feature(label) ⇒ Object
- #find_all_scenarios(conditions) ⇒ Object
- #find_procedures(conditions) ⇒ Object
- #find_scenarios(conditions) ⇒ Object
- #procedure(label) ⇒ Object
Instance Method Details
#check(label) ⇒ Object
12 13 14 |
# File 'lib/foreman_maintain/concerns/finders.rb', line 12 def check(label) ensure_one_object(:check, label) end |
#detector ⇒ Object
4 5 6 |
# File 'lib/foreman_maintain/concerns/finders.rb', line 4 def detector @detector ||= ForemanMaintain.detector end |
#feature(label) ⇒ Object
8 9 10 |
# File 'lib/foreman_maintain/concerns/finders.rb', line 8 def feature(label) detector.feature(label) end |
#find_all_scenarios(conditions) ⇒ Object
28 29 30 |
# File 'lib/foreman_maintain/concerns/finders.rb', line 28 def find_all_scenarios(conditions) detector.all_scenarios(conditions) end |
#find_procedures(conditions) ⇒ Object
20 21 22 |
# File 'lib/foreman_maintain/concerns/finders.rb', line 20 def find_procedures(conditions) detector.available_procedures(conditions) end |
#find_scenarios(conditions) ⇒ Object
24 25 26 |
# File 'lib/foreman_maintain/concerns/finders.rb', line 24 def find_scenarios(conditions) detector.available_scenarios(conditions) end |
#procedure(label) ⇒ Object
16 17 18 |
# File 'lib/foreman_maintain/concerns/finders.rb', line 16 def procedure(label) ensure_one_object(:procedure, label) end |