class Autobuild::DarcsImporter
Public Class Methods
new(source, options = {})
click to toggle source
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'
Calls superclass method
# File lib/autobuild/import/darcs.rb, line 15 def initialize(source, options = {}) @source = source @program = Autobuild.tool('darcs') super(options.merge(repository_id: source)) @pull = [*options[:pull]] @get = [*options[:get]] end