Sha256: af51f10080b04fd92100d3e89ff3339337058a7bb4c8a4d64e461b534a416735

Contents?: true

Size: 492 Bytes

Versions: 29

Compression:

Stored size: 492 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 -C #{process}"
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
sprinkle-0.7.7 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.6.2 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.6.1 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.6 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.5 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.4 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.3 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.2 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.1.1 lib/sprinkle/verifiers/process.rb
sprinkle-0.7.1 lib/sprinkle/verifiers/process.rb
sprinkle-0.7 lib/sprinkle/verifiers/process.rb
sprinkle-0.6.2 lib/sprinkle/verifiers/process.rb
sprinkle-0.6.1.1 lib/sprinkle/verifiers/process.rb
sprinkle-0.6.1 lib/sprinkle/verifiers/process.rb
sprinkle-0.6.0 lib/sprinkle/verifiers/process.rb
sprinkle-0.5.2 lib/sprinkle/verifiers/process.rb
sprinkle-0.5.1.1 lib/sprinkle/verifiers/process.rb
sprinkle-0.5.1 lib/sprinkle/verifiers/process.rb
sprinkle-0.5.0 lib/sprinkle/verifiers/process.rb
sprinkle-0.5.0.rc1 lib/sprinkle/verifiers/process.rb