INNER CODE UNIT · JavaScript
ServerlessLayers
agutoli/serverless-layers · src/index.js:14
class ServerlessLayers {
constructor(serverless, options) {
this.cacheObject = {};
this.options = options;
this.serverless = serverless;
this.initialized = false;
// hooks
this.hooks = {
'before:package:function:package': () => BbPromise.bind(this)
.then(() => {
return this.init()
.then(() => this.deployLayers())
}),
'before:package:initialize': () => BbPromise.bind(this)
.then(() => {
return this.init()
.then(() => this.deployLayers())