@ossy/deployment-tools 0.0.34 → 0.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/deployment-platform-client.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -48107,7 +48107,7 @@ class DeploymentPlatformClient {
|
|
|
48107
48107
|
deploymentTemplates.map(deploymentTemplate => {
|
|
48108
48108
|
logInfo({ message: `[DeploymentPlatformClient]: Found deployment platforms [${platforms.map(x => x.platformName).join(', ')}]` });
|
|
48109
48109
|
const deploymentPlatform = platforms
|
|
48110
|
-
.map(platform => (Object.assign(Object.assign({}, platform), { activeEnvironment: targetEnvironment })))
|
|
48110
|
+
.map(platform => DeploymentPlatformClient.setCalculatedDeploymentPlatformValues(Object.assign(Object.assign({}, platform), { activeEnvironment: targetEnvironment })))
|
|
48111
48111
|
.find(platform => platform.platformName === deploymentTemplate.targetDeploymentPlatform);
|
|
48112
48112
|
if (!deploymentPlatform) {
|
|
48113
48113
|
logError({ message: `[DeploymentPlatformClient] Could not find a deployment platform with the name ${deploymentTemplate.targetDeploymentPlatform}` });
|
|
@@ -48146,7 +48146,7 @@ class DeploymentPlatformClient {
|
|
|
48146
48146
|
return Object.assign({ platformName: SupportedEnvironments.LOCAL, domain: 'localhost', activeEnvironment: SupportedEnvironments.LOCAL, supportedDeploymentTypes: ['CONTAINER'], ciSubDomain: 'ci', ciInternalServerPort: 3000, ciServerName: 'ci-client', ciDockerNetworkName: 'deployment-tools', awsRegion: SupportedRegions.North }, deploymentPlatform);
|
|
48147
48147
|
}
|
|
48148
48148
|
static setCalculatedDeploymentPlatformValues(deploymentPlatform) {
|
|
48149
|
-
return Object.assign({ awsDeploymentSqsArn: `https://sqs.${deploymentPlatform.awsRegion}.amazonaws.com/${deploymentPlatform.awsAccountId}/${deploymentPlatform.platformName}-${deploymentPlatform.activeEnvironment}` }
|
|
48149
|
+
return Object.assign(Object.assign({}, deploymentPlatform), { awsDeploymentSqsArn: `https://sqs.${deploymentPlatform.awsRegion}.amazonaws.com/${deploymentPlatform.awsAccountId}/${deploymentPlatform.platformName}-${deploymentPlatform.activeEnvironment}` });
|
|
48150
48150
|
}
|
|
48151
48151
|
}
|
|
48152
48152
|
|