Sha256: df5d2eda4481069ff63108e3b0e335098a52966c82a4d967c15f44906ab6d3eb
Contents?: true
Size: 845 Bytes
Versions: 1
Compression:
Stored size: 845 Bytes
Contents
require 'autobuild/subcommand' require 'autobuild/importer' module Autobuild class SVN < Importer def initialize(source, options = {}) @source = [*source].join("/") @program = Autobuild.tool('svn') @options_up = [*options[:svnup]] @options_co = [*options[:svnco]] super(options) end private def update(package) Dir.chdir(package.srcdir) { Subprocess.run(package.name, :import, @program, 'up', *@options_up) } end def checkout(package) options = [ @program, 'co' ] + @options_co + [ @source, package.srcdir ] Subprocess.run(package.name, :import, *options) end end def self.svn(source, options = {}) SVN.new(source, options) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
autobuild-0.6 | lib/autobuild/import/svn.rb |