Skip to content

Instantly share code, notes, and snippets.

@richardgrantserverless
Created May 17, 2022 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardgrantserverless/7778f469c1f37c0ce40210444e103c64 to your computer and use it in GitHub Desktop.
Save richardgrantserverless/7778f469c1f37c0ce40210444e103c64 to your computer and use it in GitHub Desktop.
class ServerlessPlugin {
constructor(serverless, options) {
// ...
this.hooks = {
'before:welcome:hello': this.beforeWelcome.bind(this),
'welcome:hello': this.welcomeUser.bind(this),
'welcome:world': this.displayHelloMessage.bind(this),
'after:welcome:world': this.afterHelloWorld.bind(this),
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment