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 55
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 60
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 20
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 25
def install(packages, assumeyes: false)
  raise NotImplementedError
end
install_version_locking(assumeyes: false) click to toggle source

make sure the version locking tools are configured

# File lib/foreman_maintain/package_manager/base.rb, line 10
def install_version_locking(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 15
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 40
def lock_versions
  raise NotImplementedError
end
remove(packages, assumeyes: false) click to toggle source

remove package

# File lib/foreman_maintain/package_manager/base.rb, line 30
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 45
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 35
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 5
def version_locking_enabled?
  raise NotImplementedError
end
versions_locked?() click to toggle source

check if packages are locked

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

Private Instance Methods

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