Method: Autobuild::DarcsImporter#initialize
- Defined in:
- lib/autobuild/import/darcs.rb
#initialize(source, options = {}) ⇒ DarcsImporter
Creates a new importer which gets the source from the Darcs repository source # The following values are allowed in options:
- :get
-
options to give to ‘darcs get’.
- :pull
-
options to give to ‘darcs pull’.
This importer uses the ‘darcs’ tool to perform the import. It defaults to ‘darcs’ and can be configured by doing
Autobuild.programs['darcs'] = 'my_darcs_tool'
11 12 13 14 15 16 17 |
# File 'lib/autobuild/import/darcs.rb', line 11 def initialize(source, = {}) @source = source @program = Autobuild.tool('darcs') super(.merge(repository_id: source)) @pull = [*[:pull]] @get = [*[:get]] end |