Class: BigKeeper::VerifyOperator
- Inherits:
-
Object
- Object
- BigKeeper::VerifyOperator
- Defined in:
- lib/big_keeper/util/verify_operator.rb
Overview
Operator for got
Class Method Summary collapse
Class Method Details
.already_in_process? ⇒ Boolean
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/big_keeper/util/verify_operator.rb', line 4 def self.already_in_process? already_in_process = false Open3.popen3('ps aux | grep \<big\> -c') do |stdin , stdout , stderr, wait_thr| while line = stdout.gets if line.rstrip.to_i > 2 already_in_process = true break end end end already_in_process end |