nci/lib/scm/index.js

13 lines
234 B
JavaScript
Raw Normal View History

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