Sha256: 66d131265fbbd9a195b5cb490d6b938115582f2e9b863c83e0c37e1f0e563fe1
Contents?: true
Size: 862 Bytes
Versions: 3
Compression:
Stored size: 862 Bytes
Contents
require 'autobuild/config' require 'autobuild/subcommand' require 'autobuild/importer' module Autobuild class DarcsImporter < Importer def initialize(source, options = {}) @source = source @program = Autobuild.tool('darcs') super(options) @pull = [*options[:pull]] @get = [*options[:get]] end private def update(package) Subprocess.run(package.name, :import, @program, 'pull', '--all', "--repodir=#{package.srcdir}", '--set-scripts-executable', @source, *@pull) end def checkout(package) Subprocess.run(package.name, :import, @program, 'get', '--set-scripts-executable', @source, package.srcdir, *@get) end end def self.darcs(source, options = {}) DarcsImporter.new(source, options) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
autobuild-0.6.3 | lib/autobuild/import/darcs.rb |
autobuild-0.6.2 | lib/autobuild/import/darcs.rb |
autobuild-0.6 | lib/autobuild/import/darcs.rb |