Sha256: 8b3c6c0152499cfbba6f6eb569289a054ca64bc7339a9c5215b95833cc04a65a

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

require 'repertoire/media/media'

module Repertoire
  class CVS < Media

    uses_schemes 'cvs'

    #
    # Returns +true+ if the repository located at the specified _path_
    # contains the +CVS+ directory, returns +false+ otherwise.
    #
    def self.is_repo?(path)
      File.directory?(File.join(path,'CVS'))
    end

    #
    # 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
repertoire-0.1.0 lib/repertoire/media/cvs.rb