nci/lib/scm/index.js

9 lines
182 B
JavaScript
Raw Normal View History

'use strict';
var path = require('path');
exports.createScm = function(config) {
var Constructor = require(path.join(__dirname, config.type));
return new Constructor(config);
};