Sha256: 7264f610e740381d49c5d2b76d419510fcce7b9f609f60f422031e7743beb913
Contents?: true
Size: 370 Bytes
Versions: 7
Compression:
Stored size: 370 Bytes
Contents
module Serverspec module Commands class Debian < Linux def check_enabled service "ls /etc/rc3.d/ | grep -- #{escape(service)}" end def check_installed package escaped_package = escape(package) "dpkg -s #{escaped_package} && ! dpkg -s #{escaped_package} | grep -E '^Status: .+ not-installed$'" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems