@ossy/deployment-tools 0.0.29 → 0.0.30
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
CHANGED
|
@@ -58356,7 +58356,7 @@ var __webpack_exports__ = {};
|
|
|
58356
58356
|
const log = ({ type, message, error } = { type: 'info', message: '' }) => {
|
|
58357
58357
|
const messagePrefix = `[${type.toUpperCase()}]${message.startsWith('[') ? '' : ': '}`;
|
|
58358
58358
|
console.log(`${messagePrefix}${message}`);
|
|
58359
|
-
error && console.log('[Reason]:', error);
|
|
58359
|
+
error && console.log('\n[Reason]:', error, '\n');
|
|
58360
58360
|
};
|
|
58361
58361
|
|
|
58362
58362
|
// EXTERNAL MODULE: ./node_modules/arg/index.js
|
|
@@ -60773,7 +60773,7 @@ class AwsCredentialsClient {
|
|
|
60773
60773
|
|
|
60774
60774
|
class DeploymentQueueClient {
|
|
60775
60775
|
static sendDeploymentRequest(deploymentPlatform, deploymentRequest) {
|
|
60776
|
-
log({ type: 'info', message: '[DeploymentQueueClient]
|
|
60776
|
+
log({ type: 'info', message: '[DeploymentQueueClient] Starting deployment sequence' });
|
|
60777
60777
|
return DeploymentQueueClient.createAwsSqsClient(deploymentPlatform)
|
|
60778
60778
|
.then(sqsClient => {
|
|
60779
60779
|
const command = new dist_cjs.SendMessageCommand({
|
|
@@ -60917,7 +60917,7 @@ class DeploymentPlatformClient {
|
|
|
60917
60917
|
return DeploymentPlatformClient.setCalculatedDeploymentPlatformValues(DeploymentPlatformClient.setDefaultDeploymentPlatformValues(deploymentPlatform));
|
|
60918
60918
|
}
|
|
60919
60919
|
static setDefaultDeploymentPlatformValues(deploymentPlatform) {
|
|
60920
|
-
return Object.assign({ platformName: SupportedEnvironments.LOCAL, domain: 'localhost', activeEnvironment: SupportedEnvironments.LOCAL, supportedDeploymentTypes: ['CONTAINER'], ciSubDomain: 'ci', ciInternalServerPort: 3000, ciServerName: 'ci-client', ciDockerNetworkName: 'deployment-tools' }, deploymentPlatform);
|
|
60920
|
+
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);
|
|
60921
60921
|
}
|
|
60922
60922
|
static setCalculatedDeploymentPlatformValues(deploymentPlatform) {
|
|
60923
60923
|
return Object.assign({ awsDeploymentSqsArn: `https://sqs.${deploymentPlatform.awsRegion}.amazonaws.com/${deploymentPlatform.awsAccountId}/${deploymentPlatform.platformName}-${deploymentPlatform.activeEnvironment}` }, deploymentPlatform);
|