Sha256: 1c172f121ea0ebe40ff4434741ef9e6f661dfdab1cb3b8c01dffd3240e0a3d90

Contents?: true

Size: 415 Bytes

Versions: 43

Compression:

Stored size: 415 Bytes

Contents

module BigKeeper
  # Operator for got
  class VerifyOperator
    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
  end
end

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
bigkeeper-0.9.14 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.13 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.12 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.11 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.10 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.9 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.8 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.7 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.6 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.5 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.4 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.3 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.2 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.1 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.0 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.8.9 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.8.8 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.8.7 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.8.6 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.8.5 lib/big_keeper/util/verify_operator.rb