Class: LoomExt::CoreMods::Package::DpkgAdapter

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

Direct Known Subclasses

AptAdapter

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)


49
50
51
# File 'lib/loomext/coremods/package/adapter.rb', line 49

def installed?(pkg_name)
  loom.test "dpkg -s #{pkg_name}"
end