Class: LoomExt::CoreMods::Package::RpmAdapter

Inherits:
PkgAdapter
  • Object
show all
Defined in:
lib/loomext/coremods/package/adapter.rb

Direct Known Subclasses

DnfAdapter

Instance Attribute Summary

Attributes inherited from PkgAdapter

#loom

Instance Method Summary collapse

Methods inherited from PkgAdapter

#ensure_installed, #initialize, #install, #uninstall, #update_cache, #upgrade

Constructor Details

This class inherits a constructor from LoomExt::CoreMods::Package::PkgAdapter

Instance Method Details

#installed?(pkg_name) ⇒ Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/loomext/coremods/package/adapter.rb', line 79

def installed?(pkg_name)
  loom.test :rpm, "-q #{pkg_name}"
end