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-3.0.3 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.2 lib/ohloh_scm/cvs/status.rb
ohloh_scm-3.0.1 lib/ohloh_scm/cvs/status.rb