Class: Specinfra::Command::Darwin::Base::Process
- Inherits:
-
Base::Process
- Object
- Base
- Base::Process
- Specinfra::Command::Darwin::Base::Process
- 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
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 |