Sha256: fdb53dcccd7ed839228359d4e0de73860714b90a3af3b4c52e714bd25ba2c57c
Contents?: true
Size: 440 Bytes
Versions: 222
Compression:
Stored size: 440 Bytes
Contents
class Specinfra::Command::Base::Process < Specinfra::Command::Base class << self def get(process, opts) "ps -C #{escape(process)} -o #{opts[:format]} | head -1" end def check_is_running(process) "ps aux | grep -w -- #{escape(process)} | grep -qv grep" end def check_count(process,count) "test $(ps aux | grep -w -- #{escape(process)} | grep -v grep | wc -l) -eq #{escape(count)}" end end end
Version data entries
222 entries across 222 versions & 3 rubygems