Class: LoomExt::CoreMods::Package::DnfAdapter

Inherits:
RpmAdapter show all
Defined in:
lib/loomext/coremods/package/adapter.rb

Instance Attribute Summary

Attributes inherited from PkgAdapter

#loom

Instance Method Summary collapse

Methods inherited from RpmAdapter

#installed?

Methods inherited from PkgAdapter

#ensure_installed, #initialize, #installed?

Constructor Details

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

Instance Method Details

#install(pkg_name) ⇒ Object



87
88
89
# File 'lib/loomext/coremods/package/adapter.rb', line 87

def install(pkg_name)
  loom.net.with_net { loom << "dnf install #{pkg_name}" }
end

#uninstall(pkg_name) ⇒ Object



91
92
93
94
# File 'lib/loomext/coremods/package/adapter.rb', line 91

def uninstall(pkg_name)
  # TODO: fix all loom.execute calls w/ properly atomized params
  loom << "echo dnf uninstall"
end

#update_cacheObject



96
97
98
# File 'lib/loomext/coremods/package/adapter.rb', line 96

def update_cache
  loom.net.with_net { loom << "dnf updateinfo" }
end

#upgrade(pkg_name) ⇒ Object



100
101
102
# File 'lib/loomext/coremods/package/adapter.rb', line 100

def upgrade(pkg_name)
  raise 'not implemented'
end