Sha256: 335e5d84d5b6bfb51510194afea9849ab16a0bb850587f3ee9f9663eb1765c9e

Contents?: true

Size: 508 Bytes

Versions: 24

Compression:

Stored size: 508 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 "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 "^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

24 entries across 24 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta39 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta38 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta37 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta36 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta35 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta34 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta33 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta32 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta31 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta30 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta29 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta28 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta27 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta26 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta25 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta24 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta23 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta22 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta21 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.0.0.beta20 lib/specinfra/command/ubuntu/base/ppa.rb