Sha256: b4444896cf4b96bab4c3a244e9b2832e1ff89524f57b24eab0b6ffef723e8181
Contents?: true
Size: 516 Bytes
Versions: 36
Compression:
Stored size: 516 Bytes
Contents
module Sprinkle module Verifiers # = Process Verifier # # Contains a verifier to check that a process is running. # # == Example Usage # # verify { has_process 'httpd' } # module Process Sprinkle::Verify.register(Sprinkle::Verifiers::Process) # Checks to make sure <tt>process</tt> is a process running # on the remote server. def has_process(process) @commands << "ps aux | grep '#{process}' | grep -v grep" end end end end
Version data entries
36 entries across 36 versions & 11 rubygems