lib/layer.js
function layerRequirements() {
  if (!this.options.layer) {
    return BbPromise.resolve();
  }

  this.serverless.cli.log('Packaging Python Requirements Lambda Layer...');

  return BbPromise.bind(this)
    .then(zipRequirements)
    .then(createLayers);
}
function layerRequirements() {
  if (!this.options.layer) {
    return BbPromise.resolve();
  }

  this.serverless.cli.log('Packaging Python Requirements Lambda Layer...');

  return BbPromise.bind(this)
    .then(zipRequirements)
    .then(createLayers);
}
function layerRequirements ( ) { if ( ! this . options . layer ) { return BbPromise . resolve ( ) ; } this . serverless . cli . log ( 'Packaging Python Requirements Lambda Layer...' ) ; return BbPromise . bind ( this ) . then ( zipRequirements ) . then ( createLayers ) ; }
Creates a layer from the installed requirements.
@return {Promise} the combined promise for requirements layer.
Creates a layer from the installed requirements .