nci/lib/scm/index.js

7 lines
142 B
JavaScript

'use strict';
exports.createScm = function(params) {
var Constructor = require('./' + params.type).Scm;
return new Constructor(params);
};