rubocop:disable Lint/UnusedMethodArgument
clean the package manager cache
# File lib/foreman_maintain/package_manager/base.rb, line 60 def clean_cache raise NotImplementedError end
make sure the version locking tools are configured we can assume it is already installed
# File lib/foreman_maintain/package_manager/base.rb, line 20 def configure_version_locking raise NotImplementedError end
find installed package and return full nvra or nil
# File lib/foreman_maintain/package_manager/base.rb, line 30 def find_installed_package(name) raise NotImplementedError end
install package
# File lib/foreman_maintain/package_manager/base.rb, line 35 def install(packages, assumeyes: false) raise NotImplementedError end
are the packages installed on the system?
# File lib/foreman_maintain/package_manager/base.rb, line 25 def installed?(packages) raise NotImplementedError end
prevent listed packages from update
# File lib/foreman_maintain/package_manager/base.rb, line 45 def lock_versions(package_list) raise NotImplementedError end
allow all packages we previously locked to update
# File lib/foreman_maintain/package_manager/base.rb, line 50 def unlock_versions raise NotImplementedError end
update package
# File lib/foreman_maintain/package_manager/base.rb, line 40 def update(packages = [], assumeyes: false) raise NotImplementedError end
check tools are installed and enabled
# File lib/foreman_maintain/package_manager/base.rb, line 14 def version_locking_enabled? raise NotImplementedError end
list of packages providing the version locking
# File lib/foreman_maintain/package_manager/base.rb, line 9 def version_locking_packages raise NotImplementedError end
check if packages are locked
# File lib/foreman_maintain/package_manager/base.rb, line 55 def versions_locked? raise NotImplementedError end
# File lib/foreman_maintain/package_manager/base.rb, line 66 def sys ForemanMaintain::Utils::SystemHelpers end