Sha256: d86d7a11f438afb8f89db52daf2875222b645c8a9c8657d2ced2ad3924971473

Contents?: true

Size: 516 Bytes

Versions: 135

Compression:

Stored size: 516 Bytes

Contents

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

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

    private

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

Version data entries

135 entries across 135 versions & 2 rubygems

Version Path
specinfra-cisco-2.41.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-cisco-2.40.2 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.42.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.41.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.41.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.40.2 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.40.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.40.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.39.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.39.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.38.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.38.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.9 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.8 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.6 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.5 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.4 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.3 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.2 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.37.1 lib/specinfra/command/ubuntu/base/ppa.rb