nci/lib/scm/index.js
2014-12-03 00:09:05 +03:00

11 lines
205 B
JavaScript

'use strict';
var typesHash = {
'mercurial': require('./mercurial').MercurialScm
};
exports.createScm = function(params) {
var Constructor = typesHash[params.type];
return new Constructor(params);
};