INNER CODE UNIT · JavaScript
slsHasConfigSchema
davidgf/serverless-plugin-canary-deployments · serverless-plugin-canary-deployments.js:9
const slsHasConfigSchema = sls =>
sls.configSchemaHandler &&
sls.configSchemaHandler.defineCustomProperties &&
sls.configSchemaHandler.defineFunctionProperties
class ServerlessCanaryDeployments {
constructor (serverless, options) {
this.serverless = serverless
this.options = options
this.awsProvider = this.serverless.getProvider('aws')
this.naming = this.awsProvider.naming
this.service = this.serverless.service
this.hooks = {
'after:aws:package:finalize:mergeCustomProviderResources': this.addCanaryDeploymentResources.bind(this)
}
this.addConfigSchema()
}
get codeDeployAppName () {