Sha256: 3a592c38673b89408eec62661ca043ef350bd82bd9a2112654c7308def0dab50
Contents?: true
Size: 540 Bytes
Versions: 39
Compression:
Stored size: 540 Bytes
Contents
class Specinfra::Command::Redhat::Base::Yumrepo < Specinfra::Command::Linux::Base::Yumrepo class << self def create(os_info=nil) if (os_info || os)[:release].to_i < 8 self else Specinfra::Command::Redhat::V8::Yumrepo end end def check_exists(repository) "yum repolist all -C | grep -qsE \"^[\\!\\*]?#{escape(repository)}\(\\s\|$\|\\/)\"" end def check_is_enabled(repository) "yum repolist enabled -C | grep -qs \"^[\\!\\*]\\?#{escape(repository)}\"" end end end
Version data entries
39 entries across 39 versions & 1 rubygems