Sha256: 24ffd785d1e85fe676c1850161d2cbfaa4d583ee8d69340312d0c647de1d3844
Contents?: true
Size: 496 Bytes
Versions: 9
Compression:
Stored size: 496 Bytes
Contents
module Sprinkle module Verifiers # = Apt package Verifier # # Contains a verifier to check the existance of an Apt package. # # == Example Usage # # verify { has_apt 'ntp' } # module Apt Sprinkle::Verify.register(Sprinkle::Verifiers::Apt) # Checks to make sure the apt <tt>package</tt> exists on the remote server. def has_apt(package) @commands << "dpkg --status #{package} | grep \"ok installed\"" end end end end
Version data entries
9 entries across 9 versions & 2 rubygems