nci/lib/scm/index.js

11 lines
205 B
JavaScript
Raw Normal View History

'use strict';
2014-05-10 10:19:47 +00:00
var typesHash = {
'mercurial': require('./mercurial').MercurialScm
};
2014-12-02 21:09:05 +00:00
exports.createScm = function(params) {
var Constructor = typesHash[params.type];
return new Constructor(params);
};