Sha256: fab165f8a1ece9181b816587eb271ff194dcae93a38d47b84468a0c3658647f0

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

class Specinfra::Command::Redhat::Base::Yumrepo < Specinfra::Command::Linux::Base::Yumrepo
  class << self
    def check_exists(repository)
      "yum repolist all -C | grep -E \"^#{escape(repository)}\(\\s\|$\)\""
    end

    def check_is_enabled(repository)
      "yum repolist enabled -C | grep -qs \"^[\\!\\*]\\?#{escape(repository)}\""
    end
  end
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
specinfra-2.44.4 lib/specinfra/command/redhat/base/yumrepo.rb