Sha256: 1b3103c2dbfb9d84a313769246c1d50ead29bf710cb4f60fe1e9d91f260466ea
Contents?: true
Size: 638 Bytes
Versions: 9
Compression:
Stored size: 638 Bytes
Contents
module SpecInfra module Command class Ubuntu < Debian def check_running(service) "service #{escape(service)} status && service #{escape(service)} status | grep 'running'" end def check_ppa(package) %Q{find /etc/apt/ -name \*.list | xargs grep -o "deb +http://ppa.launchpad.net/#{to_apt_line_uri(package)}"} end def check_ppa_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 end
Version data entries
9 entries across 9 versions & 1 rubygems