class Autobuild::CVSImporter

Attributes

options_co[R]

Array of options to give to 'cvs checkout'

options_up[R]

Array of options to give to 'cvs update'

Public Class Methods

new(root_name, options = {}) click to toggle source

Creates a new importer which gets the module name from the repository in root. The following values are allowed in options:

:cvsup

options to give to 'cvs up'. Default: -dP.

:cvsco

options to give to 'cvs co'. Default: -P.

This importer uses the 'cvs' tool to perform the import. It defaults to 'cvs' and can be configured by doing

Autobuild.programs['cvs'] = 'my_cvs_tool'
Calls superclass method
# File lib/autobuild/import/cvs.rb, line 11
def initialize(root_name, options = {})
    cvsopts, common = Kernel.filter_options options,
                                            module: nil, cvsup: '-dP', cvsco: '-P'
    @root   = root_name
    @module = cvsopts[:module]
    raise ArgumentError, "no module given" unless @module

    @options_up = cvsopts[:cvsup] || '-dP'
    @options_up = Array[*@options_up]
    @options_co = cvsopts[:cvsco] || '-P'
    @options_co = Array[*@options_co]
    super(common.merge(repository_id: "cvs:#{@root}:#{@module}"))
end

Public Instance Methods

modulename() click to toggle source

Returns the module to get

# File lib/autobuild/import/cvs.rb, line 31
def modulename
    @module
end