Skip to content

Commit 7288bee

Browse files
committed
Remove provider based stage and region support
1 parent 235793e commit 7288bee

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

shared/utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@ const BbPromise = require('bluebird');
66
module.exports = {
77
setDefaults() {
88
this.options.stage = _.get(this, 'options.stage')
9-
|| _.get(this, 'serverless.service.provider.stage')
109
|| 'dev';
1110
this.options.region = _.get(this, 'options.region')
12-
|| _.get(this, 'serverless.service.provider.region')
1311
|| 'us-central1';
1412

1513
return BbPromise.resolve();

shared/utils.test.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,5 @@ describe('Utils', () => {
3131
expect(googleCommand.options.region).toEqual('my-region');
3232
});
3333
});
34-
35-
it('should set the provider values for stage and region if provided', () => {
36-
googleCommand.serverless.service.provider = {
37-
stage: 'my-stage',
38-
region: 'my-region',
39-
};
40-
41-
return googleCommand.setDefaults().then(() => {
42-
expect(googleCommand.options.stage).toEqual('my-stage');
43-
expect(googleCommand.options.region).toEqual('my-region');
44-
});
45-
});
4634
});
4735
});

0 commit comments

Comments
 (0)