class ForemanMaintain::PackageManager::Base
Public Instance Methods
clean_cache()
click to toggle source
clean the package manager cache
# File lib/foreman_maintain/package_manager/base.rb, line 49 def clean_cache raise NotImplementedError end
files_not_owned_by_package(directory)
click to toggle source
list all files not owned by installed package
# File lib/foreman_maintain/package_manager/base.rb, line 54 def files_not_owned_by_package(directory) raise NotImplementedError end
find_installed_package(name)
click to toggle source
find installed package and return full nvra or nil
# File lib/foreman_maintain/package_manager/base.rb, line 14 def find_installed_package(name) raise NotImplementedError end
install(packages, assumeyes: false)
click to toggle source
install package
# File lib/foreman_maintain/package_manager/base.rb, line 19 def install(packages, assumeyes: false) raise NotImplementedError end
installed?(packages)
click to toggle source
are the packages installed on the system?
# File lib/foreman_maintain/package_manager/base.rb, line 9 def installed?(packages) raise NotImplementedError end
lock_versions()
click to toggle source
prevent selected packages from update or install
# File lib/foreman_maintain/package_manager/base.rb, line 34 def lock_versions raise NotImplementedError end
modules_supported?()
click to toggle source
confirms that Package Manager supports modules
# File lib/foreman_maintain/package_manager/base.rb, line 59 def modules_supported? false end
remove(packages, assumeyes: false)
click to toggle source
remove package
# File lib/foreman_maintain/package_manager/base.rb, line 24 def remove(packages, assumeyes: false) raise NotImplementedError end
sys()
click to toggle source
# File lib/foreman_maintain/package_manager/base.rb, line 63 def sys ForemanMaintain::Utils::SystemHelpers end
unlock_versions()
click to toggle source
allow all packages we previously locked to update
# File lib/foreman_maintain/package_manager/base.rb, line 39 def unlock_versions raise NotImplementedError end
update(packages = [], assumeyes: false)
click to toggle source
update package
# File lib/foreman_maintain/package_manager/base.rb, line 29 def update(packages = [], assumeyes: false) raise NotImplementedError end
version_locking_supported?()
click to toggle source
confirms that Package Manager supports the locking mechanism
# File lib/foreman_maintain/package_manager/base.rb, line 4 def version_locking_supported? raise NotImplementedError end
versions_locked?()
click to toggle source
check if packages are locked
# File lib/foreman_maintain/package_manager/base.rb, line 44 def versions_locked? raise NotImplementedError end