-
-
Save richardgrantserverless/7778f469c1f37c0ce40210444e103c64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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