Module: ForemanMaintain::Concerns::Finders

Instance Method Summary collapse

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

#detectorObject



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