Class: LoomExt::CoreMods::Package::DnfAdapter
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?
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)
loom << "echo dnf uninstall"
end
|
#update_cache ⇒ Object
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
|