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.82.6 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.82.5 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.82.4 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.82.3 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.82.2 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.82.1 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.82.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.81.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.80.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.79.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.78.2 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.78.1 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.78.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.77.3 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.77.2 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.77.1 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.77.0 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.76.9 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.76.8 lib/specinfra/command/redhat/base/yumrepo.rb
specinfra-2.76.7 lib/specinfra/command/redhat/base/yumrepo.rb