Method: ForemanMaintain::Concerns::PrimaryChecks#validate_downstream_packages

Defined in:
lib/foreman_maintain/concerns/primary_checks.rb

#validate_downstream_packagesObject



4
5
6
7
8
9
10
11
12
# File 'lib/foreman_maintain/concerns/primary_checks.rb', line 4

def validate_downstream_packages
  return unless detector.feature(:installer)

  if (package = package_name) && !package_manager.installed?(package)
    raise ForemanMaintain::Error::Fail,
      "Error: Important rpm package #{package} is not installed!"\
      "\nInstall #{package} rpm to ensure system consistency."
  end
end