class ForemanMaintain::Feature

Public Class Methods

inspect() click to toggle source
# File lib/foreman_maintain/feature.rb, line 11
def self.inspect
  "Feature Class #{metadata[:label]}<#{name}>"
end

Public Instance Methods

additional_features() click to toggle source

Override to generate additional feature instances that can't be autodetected directly

# File lib/foreman_maintain/feature.rb, line 30
def additional_features
  []
end
config_files() click to toggle source

list of config files the feature uses

# File lib/foreman_maintain/feature.rb, line 35
def config_files
  []
end
config_files_exclude_for_online() click to toggle source
# File lib/foreman_maintain/feature.rb, line 45
def config_files_exclude_for_online
  []
end
config_files_to_exclude() click to toggle source

list of config files to be excluded from the list of config files. Can be used to exclude subdir from whole config directory

# File lib/foreman_maintain/feature.rb, line 41
def config_files_to_exclude
  []
end
inspect() click to toggle source
# File lib/foreman_maintain/feature.rb, line 15
def inspect
  "#{self.class.metadata[:label]}<#{self.class.name}>"
end
services() click to toggle source

Override method with list of applicable services for feature. Services have a number for priority in order to ensure they are started and stopped in the correct order. example:

system_service('foo', 10), system_service('bar', 20)
# File lib/foreman_maintain/feature.rb, line 24
def services
  []
end