Sha256: d2d2ecd7138aa1ab370d8ddedc1d931933029f323b0796fa1f388b7249f98d5f

Contents?: true

Size: 510 Bytes

Versions: 38

Compression:

Stored size: 510 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

38 entries across 38 versions & 1 rubygems

Version Path
specinfra-2.8.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.7.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.6.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.5.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.4.5 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.4.4 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.4.3 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.4.2 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.4.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.4.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.3.2 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.3.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.3.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.2.4 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.2.3 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.2.2 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.2.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.2.0 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.1.1 lib/specinfra/command/ubuntu/base/ppa.rb
specinfra-2.1.0 lib/specinfra/command/ubuntu/base/ppa.rb