Skip to content

Instantly share code, notes, and snippets.

@flomotlik
Created May 13, 2016 18:36
Show Gist options
  • Save flomotlik/dbdce0f80be6ad4c5b5dc692b603ed23 to your computer and use it in GitHub Desktop.
Save flomotlik/dbdce0f80be6ad4c5b5dc692b603ed23 to your computer and use it in GitHub Desktop.
module exports = class SomePlugin extends ServerlessPlugin{
//Contructor should be defined in ServerlessPlugin so you don't have to recreate it here
constructor(pluginConfig, serverlessConfig, serverlessUtils) {
this.pluginConfig = pluginConfig;
this.serverlessConfig = serverlessConfig;
this.serverlessUtils = serverlessUtils;
}
beforeDeployResources(params) {
// do something
}
deployFunctions(params) {
// do something with it
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment