Class: ForemanMaintain::PackageManager::Base
- Inherits:
-
Object
- Object
- ForemanMaintain::PackageManager::Base
- Defined in:
- lib/foreman_maintain/package_manager/base.rb
Overview
rubocop:disable Lint/UnusedMethodArgument
Direct Known Subclasses
Instance Method Summary collapse
-
#clean_cache ⇒ Object
clean the package manager cache.
-
#files_not_owned_by_package(directory) ⇒ Object
list all files not owned by installed package.
-
#find_installed_package(name) ⇒ Object
find installed package and return full nvra or nil.
-
#install(packages, assumeyes: false) ⇒ Object
install package.
-
#install_version_locking(assumeyes: false) ⇒ Object
make sure the version locking tools are configured.
-
#installed?(packages) ⇒ Boolean
are the packages installed on the system?.
-
#lock_versions ⇒ Object
prevent selected packages from update or install.
-
#remove(packages, assumeyes: false) ⇒ Object
remove package.
-
#unlock_versions ⇒ Object
allow all packages we previously locked to update.
-
#update(packages = [], assumeyes: false) ⇒ Object
update package.
-
#version_locking_enabled? ⇒ Boolean
check tools are installed and enabled.
-
#versions_locked? ⇒ Boolean
check if packages are locked.
Instance Method Details
#clean_cache ⇒ Object
clean the package manager cache
55 56 57 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 55 def clean_cache raise NotImplementedError end |
#files_not_owned_by_package(directory) ⇒ Object
list all files not owned by installed package
60 61 62 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 60 def files_not_owned_by_package(directory) raise NotImplementedError end |
#find_installed_package(name) ⇒ Object
find installed package and return full nvra or nil
20 21 22 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 20 def find_installed_package(name) raise NotImplementedError end |
#install(packages, assumeyes: false) ⇒ Object
install package
25 26 27 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 25 def install(packages, assumeyes: false) raise NotImplementedError end |
#install_version_locking(assumeyes: false) ⇒ Object
make sure the version locking tools are configured
10 11 12 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 10 def install_version_locking(assumeyes: false) raise NotImplementedError end |
#installed?(packages) ⇒ Boolean
are the packages installed on the system?
15 16 17 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 15 def installed?(packages) raise NotImplementedError end |
#lock_versions ⇒ Object
prevent selected packages from update or install
40 41 42 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 40 def lock_versions raise NotImplementedError end |
#remove(packages, assumeyes: false) ⇒ Object
remove package
30 31 32 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 30 def remove(packages, assumeyes: false) raise NotImplementedError end |
#unlock_versions ⇒ Object
allow all packages we previously locked to update
45 46 47 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 45 def unlock_versions raise NotImplementedError end |
#update(packages = [], assumeyes: false) ⇒ Object
update package
35 36 37 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 35 def update(packages = [], assumeyes: false) raise NotImplementedError end |
#version_locking_enabled? ⇒ Boolean
check tools are installed and enabled
5 6 7 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 5 def version_locking_enabled? raise NotImplementedError end |
#versions_locked? ⇒ Boolean
check if packages are locked
50 51 52 |
# File 'lib/foreman_maintain/package_manager/base.rb', line 50 def versions_locked? raise NotImplementedError end |