Module: Sprinkle::Verifiers::Process

Defined in:
lib/sprinkle/verifiers/process.rb

Overview

Process Verifier

Contains a verifier to check that a process is running.

Example Usage

verify { has_process 'httpd' }

Instance Method Summary collapse

Instance Method Details

#has_process(process) ⇒ Object

Checks to make sure process is a process running on the remote server.



16
17
18
# File 'lib/sprinkle/verifiers/process.rb', line 16

def has_process(process)
  @commands << "ps aux | grep '#{process}' | grep -v grep"
end