Skip to content

Commit f9072d8

Browse files
authored
Add keyprefix to deployDescribe log (#110)
1 parent 8889c28 commit f9072d8

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ class Client {
131131
sse,
132132
routingRules,
133133
manageResources,
134-
tags;
134+
tags,
135+
prefixText;
135136

136137
return this._validateConfig()
137138
.then(() => {
@@ -163,13 +164,17 @@ class Client {
163164
routingRules = this.options.routingRules || null;
164165
tags = this.options.tags || []
165166

167+
if(keyPrefix) {
168+
prefixText = `under the prefix '${keyPrefix}'`
169+
}
170+
166171
const deployDescribe = ['This deployment will:'];
167172

168173
if (this.cliOptions['delete-contents']) {
169174
deployDescribe.push(`- Remove all existing files from bucket '${bucketName}'`);
170175
}
171176
deployDescribe.push(
172-
`- Upload all files from '${distributionFolder}' to bucket '${bucketName}'`
177+
`- Upload all files from '${distributionFolder}' to bucket '${bucketName}' ${prefixText}`
173178
);
174179

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

0 commit comments

Comments
 (0)