Sha256: 16a455c28c484497997f0b6d79a4ef68ce826a23dc2958c91456cb8d8d386517

Contents?: true

Size: 634 Bytes

Versions: 160

Compression:

Stored size: 634 Bytes

Contents

class Specinfra::Command::Cumuluslinux::Base::Ppa < Specinfra::Command::Debian::Base::Ppa
  class << self
    def check_exists(package)
      %Q{find /etc/apt/ -name \*.list | xargs grep -o "deb +http://repo.cumulusnetworks.com/#{to_apt_line_uri(package)}"}
    end

    def check_is_enabled(package)
      %Q{find /etc/apt/ -name \*.list | xargs grep -o "^deb +http://repo.cumulusnetworks.com/#{to_apt_line_uri(package)}"}
    end

    private

    def to_apt_line_uri(repo)
      escape(repo.gsub(/^ppa:/,''))
    end
  end
end

class Specinfra::Command::Cumulusnetworks::Base::Ppa < Specinfra::Command::Cumuluslinux::Base::Ppa
end

Version data entries

160 entries across 160 versions & 1 rubygems

Version Path
specinfra-2.82.25 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.24 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.23 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.22 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.21 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.20 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.19 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.18 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.17 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.16 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.15 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.14 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.13 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.12 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.11 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.10 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.9 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.8 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.7 lib/specinfra/command/cumulus/base/ppa.rb
specinfra-2.82.6 lib/specinfra/command/cumulus/base/ppa.rb