class Specinfra::Command::Ubuntu::Base::Ppa
Public Class Methods
check_exists(package)
click to toggle source
# File lib/specinfra/command/ubuntu/base/ppa.rb, line 3 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
check_is_enabled(package)
click to toggle source
# File lib/specinfra/command/ubuntu/base/ppa.rb, line 7 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 Class Methods
to_apt_line_uri(repo)
click to toggle source
# File lib/specinfra/command/ubuntu/base/ppa.rb, line 13 def to_apt_line_uri(repo) escape(repo.gsub(/^ppa:/,'')) end