Class: Specinfra::Command::Ubuntu::Base::Ppa
- Inherits:
-
Debian::Base::Ppa
- Object
- Base
- Base::Ppa
- Linux::Base::Ppa
- Debian::Base::Ppa
- Specinfra::Command::Ubuntu::Base::Ppa
- Defined in:
- lib/specinfra/command/ubuntu/base/ppa.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.check_exists(package) ⇒ Object
3 4 5 |
# 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) ⇒ Object
7 8 9 |
# 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 |