UNPKG

@argodigital/qq-shared

Version:
16 lines (15 loc) 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var param_helper_1 = require("../param-helper"); var logger_1 = require("../logger"); function getOwnUrl() { logger_1.log.trace("Getting the url of the deployed stack"); return param_helper_1.getParameterFromLocalFile('ServiceEndpoint', 'infrastructure/stack-outputs.yml'); } exports.getOwnUrl = getOwnUrl; function getServiceUrl(service, stage) { if (stage === void 0) { stage = 'default'; } logger_1.log.trace("Getting the url of the " + service + " with stage " + stage); return param_helper_1.getParameterFromLocalFile(service, 'infrastructure/stack-outputs.yml')[stage]; } exports.getServiceUrl = getServiceUrl;