Sha256: d40018f5a6205729fdd2bbe4d419143ec495963c4865b5655ee96d6bcb52d8d5
Contents?: true
Size: 530 Bytes
Versions: 183
Compression:
Stored size: 530 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
183 entries across 183 versions & 2 rubygems