Sha256: 30c1ac9aaaee304f6ce75aac895ba3cf3a4ea55ad178c7cd270713cb335b2985

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

require 'repertoire/media/type'

module Repertoire
  module Media
    class CVS

      include Type

      known_as :cvs

      uses_schemes 'cvs'
      uses_directory 'CVS'

      #
      # Checks out the CVS repository located at the specified _uri_ into the
      # specified _path_.
      #
      def self.checkout(uri,path)
        sh('cvs','-d',path,'co',uri)
      end

      #
      # Updated the CVS repository located at the specified _path_.
      #
      def self.update(path,uri=nil)
        sh('cvs','up',path)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
repertoire-0.1.2 lib/repertoire/media/types/cvs.rb
repertoire-0.1.1 lib/repertoire/media/types/cvs.rb