@raisenow/tamaro-cli 1.6.0 → 1.6.1
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/cli.js +19 -5
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -847,7 +847,7 @@ var undeploy = async (options) => {
|
|
|
847
847
|
assertOptionsValid9(options);
|
|
848
848
|
awsAuthenticate(options);
|
|
849
849
|
const flags = prepareFlags(options);
|
|
850
|
-
const { tag, all, dryrun } = options;
|
|
850
|
+
const { tag = DEFAULT_TAG, all, dryrun } = options;
|
|
851
851
|
const dryRunFlag = dryrun ? `--dryrun` : "";
|
|
852
852
|
const deployUrl = all ? `s3://${AWS_S3_BUCKET_TAMARO}/${configName}/` : `s3://${AWS_S3_BUCKET_TAMARO}/${configName}/${tag}/`;
|
|
853
853
|
const description = all ? `all tags of "${configName}"` : `tag "${tag}" of "${configName}"`;
|
|
@@ -926,8 +926,19 @@ var undeployEmailConfig = async (options) => {
|
|
|
926
926
|
assertProfilesPresent();
|
|
927
927
|
options.profile = await promptProfile();
|
|
928
928
|
}
|
|
929
|
+
if (options.ci) {
|
|
930
|
+
options.bucket = AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_PROD;
|
|
931
|
+
}
|
|
929
932
|
if (!options.bucket) {
|
|
930
|
-
|
|
933
|
+
if (options.ci) {
|
|
934
|
+
options.bucket = AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_PROD;
|
|
935
|
+
} else if (options.prod) {
|
|
936
|
+
options.bucket = AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_PROD;
|
|
937
|
+
} else if (options.stage) {
|
|
938
|
+
options.bucket = AWS_S3_BUCKET_TAMARO_EMAIL_CONFIG_STAGE;
|
|
939
|
+
} else {
|
|
940
|
+
options.bucket = await promptBucketTamaroEmailConfig2();
|
|
941
|
+
}
|
|
931
942
|
}
|
|
932
943
|
assertOptionsValid10(options);
|
|
933
944
|
awsAuthenticate(options);
|
|
@@ -937,7 +948,7 @@ var undeployEmailConfig = async (options) => {
|
|
|
937
948
|
const deployUrl = `s3://${options.bucket}/${configName}/`;
|
|
938
949
|
await promptConfirmation(
|
|
939
950
|
`Are you sure you want to undeploy the email configuration for "${configName}" from "${options.bucket}"?`,
|
|
940
|
-
options.
|
|
951
|
+
options.ci
|
|
941
952
|
);
|
|
942
953
|
if (dryRunFlag) {
|
|
943
954
|
logTitle("\u{1F9EA} DRY RUN MODE - No actual changes will be made \u{1F9EA}");
|
|
@@ -1013,7 +1024,7 @@ var promptBucketTamaroEmailConfig2 = async () => {
|
|
|
1013
1024
|
// package.json
|
|
1014
1025
|
var package_default = {
|
|
1015
1026
|
name: "@raisenow/tamaro-cli",
|
|
1016
|
-
version: "1.6.
|
|
1027
|
+
version: "1.6.1",
|
|
1017
1028
|
author: {
|
|
1018
1029
|
name: "RaiseNow",
|
|
1019
1030
|
email: "development@raisenow.com"
|
|
@@ -1212,7 +1223,7 @@ cli.command("deploy-email-config").description("Deploy a widget's email configur
|
|
|
1212
1223
|
});
|
|
1213
1224
|
cli.command("undeploy").description(
|
|
1214
1225
|
"Undeploy a Tamaro Core or customer configuration bundle from AWS S3"
|
|
1215
|
-
).option("--profile <profile>", "AWS profile").option("--ci", "CI environment", false).option("--tag <tag>", "Tag which should be undeployed"
|
|
1226
|
+
).option("--profile <profile>", "AWS profile").option("--ci", "CI environment", false).option("--tag <tag>", "Tag which should be undeployed").option("--all", "Undeploy all tags", false).option(
|
|
1216
1227
|
"--dryrun",
|
|
1217
1228
|
"Displays the operations that would be performed without actually running them",
|
|
1218
1229
|
false
|
|
@@ -1220,6 +1231,9 @@ cli.command("undeploy").description(
|
|
|
1220
1231
|
await undeploy(options);
|
|
1221
1232
|
});
|
|
1222
1233
|
cli.command("undeploy-email-config").description("Undeploy a widget's email configuration from AWS S3").option("--profile <profile>", "AWS profile").option("--ci", "CI environment", false).option("--bucket <bucket>", "AWS bucket for email configs").option(
|
|
1234
|
+
"--stage",
|
|
1235
|
+
"Undeploy from stage environment (alternative to --bucket)"
|
|
1236
|
+
).option("--prod", "Undeploy from prod environment (alternative to --bucket)").option(
|
|
1223
1237
|
"--dryrun",
|
|
1224
1238
|
"Displays the operations that would be performed without actually running them",
|
|
1225
1239
|
false
|