Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
👮 Fix Serverless hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubMatejka committed Nov 15, 2017
1 parent 1b06044 commit d309b41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ class PapertrailLogging {
this.provider = this.serverless.getProvider('aws');

this.hooks = {
'package:createDeploymentArtifacts': this.packageCreateDeploymentArtifacts.bind(this),
'package:compileEvents': this.packageCompileEvents.bind(this),
'before:package:createDeploymentArtifacts': this.beforePackageCreateDeploymentArtifacts.bind(this),
'before:package:compileEvents': this.beforePackageCompileEvents.bind(this),
'after:deploy:deploy': this.afterDeployDeploy.bind(this),
};
}
Expand All @@ -30,7 +30,7 @@ class PapertrailLogging {
return path.join(this.serverless.config.servicePath, PapertrailLogging.getFunctionName());
}

packageCreateDeploymentArtifacts() {
beforePackageCreateDeploymentArtifacts() {
this.serverless.cli.log('Creating temporary logger function...');
let functionPath = this.getEnvFilePath();

Expand Down Expand Up @@ -66,7 +66,7 @@ class PapertrailLogging {
};
}

packageCompileEvents() {
beforePackageCompileEvents() {
this.serverless.cli.log('Creating log subscriptions...');

const loggerLogicalId = this.provider.naming.getLambdaLogicalId(PapertrailLogging.getFunctionName());
Expand Down

0 comments on commit d309b41

Please sign in to comment.