Class: Specinfra::Command::Cumulusnetworks::Base::Ppa

Inherits:
Debian::Base::Ppa show all
Defined in:
lib/specinfra/command/cumulus/base/ppa.rb

Class Method Summary collapse

Methods inherited from Base

create, escape

Class Method Details

.check_exists(package) ⇒ Object



3
4
5
# File 'lib/specinfra/command/cumulus/base/ppa.rb', line 3

def check_exists(package)
  %Q{find /etc/apt/ -name \*.list | xargs grep -o "deb +http://repo.cumulusnetworks.com/#{to_apt_line_uri(package)}"}
end

.check_is_enabled(package) ⇒ Object



7
8
9
# File 'lib/specinfra/command/cumulus/base/ppa.rb', line 7

def check_is_enabled(package)
  %Q{find /etc/apt/ -name \*.list | xargs grep -o "^deb +http://repo.cumulusnetworks.com/#{to_apt_line_uri(package)}"}
end