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
shkeeper-1.0.0 lib/big_keeper/util/verify_operator.rb
kookeeper-3.1.2 lib/big_keeper/util/verify_operator.rb
kookeeper-3.1.0 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.9 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.8 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.7 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.6 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.5 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.4 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.3 lib/big_keeper/util/verify_operator.rb
kookeeper-3.0.0 lib/big_keeper/util/verify_operator.rb
kookeeper-2.0.0 lib/big_keeper/util/verify_operator.rb
kookeeper-1.0.0 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.21 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.20 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.19 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.18 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.17 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.16 lib/big_keeper/util/verify_operator.rb
bigkeeper-0.9.15 lib/big_keeper/util/verify_operator.rb