Sha256: 30a3e32675b677cb2f3a7bf1534748b01c65be6bc35953fd240d6299a827ecb1

Contents?: true

Size: 339 Bytes

Versions: 23

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

module OhlohScm
  module Cvs
    class Status < OhlohScm::Status
      def lock?
        run "timeout 2m cvsnt -q -d #{scm.url} rlog '#{scm.branch_name}'"
        false
      rescue StandardError => e
        raise 'CVS lock has been found' if e.message =~ /waiting for.*lock in/
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
ohloh_scm-4.0.4 lib/ohloh_scm/cvs/status.rb
ohloh_scm-4.0.3 lib/ohloh_scm/cvs/status.rb
ohloh_scm-4.0.2 lib/ohloh_scm/cvs/status.rb
ohloh_scm-4.0.1 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.21 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.19 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.17 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.16 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.15 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.14 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.13 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.12 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.11 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.10 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.9 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.8 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.7 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.6 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.5 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.4 lib/ohloh_scm/cvs/status.rb