class ForemanMaintain::Feature

Public Class Methods

inspect() click to toggle source
# File lib/foreman_maintain/feature.rb, line 10
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 29
def additional_features
  []
end
config_files() click to toggle source

list of config files the feature uses

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

Override method with hash 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: { :foo_service => 10, :bar_service => 20 }

# File lib/foreman_maintain/feature.rb, line 23
def services
  {}
end