Sha256: 6b54e7ee8ef39036684d0c955d8787def541de8ee5ecd74a4414f8af800f9698

Contents?: true

Size: 443 Bytes

Versions: 2

Compression:

Stored size: 443 Bytes

Contents

require 'kde-build/vcs/git'
require 'kde-build/vcs/git-svn'
require 'kde-build/vcs/svn'

module BuildTool; module VCS

@mapping = {
    'git-svn' => GitSVN,
    'git'     => Git,
    'svn'     => SVN
}

module_function

def available
    @mapping.keys
end

class UnknownVcsError < Exception; end

def get( name )
    if !available.include? name
        raise VcsError, "VCS '#{name}' is not supported"
    end
    @mapping[name]
end

end; end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
build-tool-0.0.3 lib/kde-build/vcs.rb
build-tool-0.0.2 lib/kde-build/vcs.rb