renovate/lib/platform/index.js
Vladimir Starkov 608d8c5be0 feat: Bitbucket Cloud support
Adds platform support for Bitbucket cloud.

Closes #136, Closes #2238
2018-08-29 07:30:23 +02:00

21 lines
458 B
JavaScript

/* eslint-disable global-require */
const platforms = new Map([
['bitbucket', require('./bitbucket')],
['github', require('./github')],
['gitlab', require('./gitlab')],
['vsts', require('./vsts')],
]);
/* eslint-enable global-require */
function getPlatformApi(platform) {
return platforms.get(platform);
}
function initPlatform(platform) {
global.platform = getPlatformApi(platform);
}
module.exports = {
initPlatform,
getPlatformApi,
};