Sha256: 01e5ce09837061e5d2de4bc1ea3d92d044c5ba58a331b3dbc3a432ba174f77ec

Contents?: true

Size: 371 Bytes

Versions: 15

Compression:

Stored size: 371 Bytes

Contents

class Specinfra::Command::Amazon::V2022::Yumrepo < Specinfra::Command::Redhat::Base::Yumrepo
  class << self
    def check_exists(repository)
      "dnf repolist all | grep -qsE \"^[\\!\\*]?#{escape(repository)}\(\\s\|$\|\\/)\""
    end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
specinfra-2.91.0 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.90.1 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.90.0 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.89.0 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.88.2 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.88.1 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.88.0 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.87.2 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.87.1 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.87.0 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.86.0 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.85.1 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.85.0 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.84.1 lib/specinfra/command/amazon/v2022/yumrepo.rb
specinfra-2.84.0 lib/specinfra/command/amazon/v2022/yumrepo.rb