Sha256: 12bfe788795e49247c6e6793bfaf7bc56ad1ed46d68e85aec0e64009e95f32d3

Contents?: true

Size: 377 Bytes

Versions: 109

Compression:

Stored size: 377 Bytes

Contents

class Specinfra::Command::Redhat::Base::Yumrepo < Specinfra::Command::Linux::Base::Yumrepo
  class << self
    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

109 entries across 109 versions & 1 rubygems

Version Path
specinfra-2.66.7 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.66.6 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.66.5 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.66.4 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.66.3 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.66.2 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.66.1 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.66.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.65.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.64.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.63.3 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.63.2 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.63.1 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.63.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.62.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.61.3 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.61.2 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.61.1 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.61.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.60.4 lib/specinfra/command/redhat/base/yumrepo.rb