Skip to content

Commit

Permalink
Merge pull request #20 from GoProperly/support_noDeploy
Browse files Browse the repository at this point in the history
support serverless' --noDeploy option
  • Loading branch information
aghadiry authored Jan 24, 2021
2 parents c076cd4 + 5203ec2 commit dd203c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ class CloudfrontInvalidate {

invalidate() {
const cli = this.serverless.cli;


if (this.options.noDeploy) {
cli.consoleLog('skipping invalidation due to noDeploy option');
return;
}

this.serverless.service.custom.cloudfrontInvalidate.forEach(element => {
let cloudfrontInvalidate = element;
let reference = randomstring.generate(16);
Expand Down

0 comments on commit dd203c6

Please sign in to comment.