Class: Specinfra::Command::Redhat::V8::Yumrepo
- Inherits:
-
Base::Yumrepo
- Object
- Base
- Base::Yumrepo
- Linux::Base::Yumrepo
- Base::Yumrepo
- Specinfra::Command::Redhat::V8::Yumrepo
- Defined in:
- lib/specinfra/command/redhat/v8/yumrepo.rb
Class Method Summary collapse
Methods inherited from Base::Yumrepo
Methods inherited from Base
Class Method Details
.check_exists(repository) ⇒ Object
3 4 5 |
# File 'lib/specinfra/command/redhat/v8/yumrepo.rb', line 3 def check_exists(repository) "dnf repolist all | grep -qsE \"^[\\!\\*]?#{escape(repository)}\(\\s\|$\|\\/)\"" end |
.check_is_enabled(repository) ⇒ Object
7 8 9 |
# File 'lib/specinfra/command/redhat/v8/yumrepo.rb', line 7 def check_is_enabled(repository) "dnf repolist enabled | grep -qs \"^[\\!\\*]\\?#{escape(repository)}\"" end |