Class: Specinfra::Command::Darwin::Base::Process

Inherits:
Base::Process show all
Defined in:
lib/specinfra/command/darwin/base/process.rb

Class Method Summary collapse

Methods inherited from Base::Process

check_count, check_is_running, count

Methods inherited from Base

create, escape

Class Method Details

.get(process, opts) ⇒ Object



3
4
5
# File 'lib/specinfra/command/darwin/base/process.rb', line 3

def get(process, opts)
  "ps -A -c -o #{opts[:format]},command | grep -E -m 1 ^\\ *[0-9]+\\ +#{escape(process)}$ | awk '{print $1}'"
end