mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Remove the errant (but understandable) distributed usage of region and stage settings. This otherwise locks in a multitude of bugs around the improper algorithm for selecting (given all context) the proper region or stage setting. Instead, all code should use the centralized algorithm for determining such values. This creates a strange first and second class configuration concept but these two are sufficiently varied and complex in their creation and use that this seems appropriate.
17 lines
324 B
JavaScript
17 lines
324 B
JavaScript
'use strict';
|
|
|
|
const BbPromise = require('bluebird');
|
|
|
|
module.exports = {
|
|
setBucketName() {
|
|
if (this.bucketName) {
|
|
return BbPromise.resolve(this.bucketName);
|
|
}
|
|
|
|
return this.provider.getServerlessDeploymentBucketName()
|
|
.then((bucketName) => {
|
|
this.bucketName = bucketName;
|
|
});
|
|
},
|
|
};
|