class ForemanMaintain::PackageManager::Base

rubocop:disable Lint/UnusedMethodArgument

Public Instance Methods

clean_cache() click to toggle source

clean the package manager cache

# File lib/foreman_maintain/package_manager/base.rb, line 65
def clean_cache
  raise NotImplementedError
end
configure_version_locking() click to toggle source

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(name) click to toggle source

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(packages, assumeyes: false) click to toggle source

install package

# File lib/foreman_maintain/package_manager/base.rb, line 35
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 25
def installed?(packages)
  raise NotImplementedError
end
lock_versions(package_list) click to toggle source

prevent listed packages from update

# File lib/foreman_maintain/package_manager/base.rb, line 50
def lock_versions(package_list)
  raise NotImplementedError
end
remove(packages, assumeyes: false) click to toggle source

remove package

# File lib/foreman_maintain/package_manager/base.rb, line 40
def remove(packages, assumeyes: false)
  raise NotImplementedError
end
unlock_versions() click to toggle source

allow all packages we previously locked to update

# File lib/foreman_maintain/package_manager/base.rb, line 55
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 45
def update(packages = [], assumeyes: false)
  raise NotImplementedError
end
version_locking_enabled?() click to toggle source

check tools are installed and enabled

# File lib/foreman_maintain/package_manager/base.rb, line 14
def version_locking_enabled?
  raise NotImplementedError
end
version_locking_packages() click to toggle source

list of packages providing the version locking

# File lib/foreman_maintain/package_manager/base.rb, line 9
def version_locking_packages
  raise NotImplementedError
end
versions_locked?() click to toggle source

check if packages are locked

# File lib/foreman_maintain/package_manager/base.rb, line 60
def versions_locked?
  raise NotImplementedError
end

Private Instance Methods

sys() click to toggle source
# File lib/foreman_maintain/package_manager/base.rb, line 71
def sys
  ForemanMaintain::Utils::SystemHelpers
end