19 lines
696 B
JavaScript
19 lines
696 B
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getCIInfo = void 0;
|
|
const fs_1 = require("fs");
|
|
const ci_detection_1 = require("./ci-detection");
|
|
const ci_info_providers_1 = require("./ci-info-providers");
|
|
const logger_1 = __importDefault(require("../logger"));
|
|
function getCIInfo() {
|
|
let info;
|
|
const CISystem = ci_detection_1.detectCISystem();
|
|
if (CISystem)
|
|
return ci_info_providers_1.CIInfoProviders[CISystem](fs_1.readFileSync, logger_1.default);
|
|
return info;
|
|
}
|
|
exports.getCIInfo = getCIInfo;
|