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

Version Path
auser-sprinkle-0.1.6 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.1.6 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.1.7 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.1.8 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.1.9 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.2.0 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.2.1 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.2.2 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.2.3 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.2.4 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.2.5 lib/sprinkle/verifiers/process.rb
crafterm-sprinkle-0.2.6 lib/sprinkle/verifiers/process.rb
jemmyw-sprinkle-0.2.3 lib/sprinkle/verifiers/process.rb
jemmyw-sprinkle-0.2.4 lib/sprinkle/verifiers/process.rb
jsierles-sprinkle-0.1.9 lib/sprinkle/verifiers/process.rb
justsee-sprinkle-0.2.4 lib/sprinkle/verifiers/process.rb
mdwan-sprinkle-0.2.2 lib/sprinkle/verifiers/process.rb
mdwan-sprinkle-0.2.3 lib/sprinkle/verifiers/process.rb
mitchellh-sprinkle-0.1.6 lib/sprinkle/verifiers/process.rb
trevorturk-sprinkle-0.2.2 lib/sprinkle/verifiers/process.rb