Class: Yay
- Inherits:
-
Thor
- Object
- Thor
- Yay
- Defined in:
- lib/pkg/pkgm/yay.rb
Instance Method Summary collapse
Instance Method Details
#install(package, *args) ⇒ Object
12 13 14 15 16 |
# File 'lib/pkg/pkgm/yay.rb', line 12 def install(package, *args) success = system 'yay', '-Sy', *args, package PkgConfig.add(self.class.name, ConfigOptions::PACKAGES, package, success) end |
#uninstall(package, *args) ⇒ Object
24 25 26 27 28 |
# File 'lib/pkg/pkgm/yay.rb', line 24 def uninstall(package, *args) success = system 'yay', '-R', *args, package PkgConfig.remove(self.class.name, ConfigOptions::PACKAGES, package, success) end |
#update(*args) ⇒ Object
19 20 21 |
# File 'lib/pkg/pkgm/yay.rb', line 19 def update(*args) system 'yay', '-Syu', *args end |