Skip to content

Commit

Permalink
Add keyprefix to deployDescribe log (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lilja committed Dec 6, 2021
1 parent 8889c28 commit f9072d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions index.js
Expand Up @@ -131,7 +131,8 @@ class Client {
sse,
routingRules,
manageResources,
tags;
tags,
prefixText;

return this._validateConfig()
.then(() => {
Expand Down Expand Up @@ -163,13 +164,17 @@ class Client {
routingRules = this.options.routingRules || null;
tags = this.options.tags || []

if(keyPrefix) {
prefixText = `under the prefix '${keyPrefix}'`
}

const deployDescribe = ['This deployment will:'];

if (this.cliOptions['delete-contents']) {
deployDescribe.push(`- Remove all existing files from bucket '${bucketName}'`);
}
deployDescribe.push(
`- Upload all files from '${distributionFolder}' to bucket '${bucketName}'`
`- Upload all files from '${distributionFolder}' to bucket '${bucketName}' ${prefixText}`
);

if (this.cliOptions['config-change'] !== false && manageResources !== false) {
Expand Down

0 comments on commit f9072d8

Please sign in to comment.