UNPKG

azdev-automation

Version:

Azure DevOps automation framework enables access control automation of projects, pipelines and repositories configuration in Azure DevOps Services

22 lines (21 loc) 917 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EndpointUpdater = void 0; class EndpointUpdater { constructor(endpointHelper, commonHelper, logger) { this.logger = logger; this.debugLogger = logger.extend(this.constructor.name); this.endpointHelper = endpointHelper; this.commonHelper = commonHelper; } async initialize(projectName, projectId) { this.logger.log("Initializing project service endpoint feature"); const results = await this.endpointHelper.getServiceEndpoints(projectName); if (results.length === 0) { // Simply trying and failing to create new endpoint // Initializes required service endpoints capabilities const fakeEndpoint = await this.endpointHelper.fakeServiceEndpoint(projectName, projectId); } } } exports.EndpointUpdater = EndpointUpdater;