Skip to content

Commit

Permalink
Remove provider based stage and region support
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuens committed Mar 6, 2017
1 parent 235793e commit 7288bee
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions shared/utils.js
Expand Up @@ -6,10 +6,8 @@ const BbPromise = require('bluebird');
module.exports = {
setDefaults() {
this.options.stage = _.get(this, 'options.stage')
|| _.get(this, 'serverless.service.provider.stage')
|| 'dev';
this.options.region = _.get(this, 'options.region')
|| _.get(this, 'serverless.service.provider.region')
|| 'us-central1';

return BbPromise.resolve();
Expand Down
12 changes: 0 additions & 12 deletions shared/utils.test.js
Expand Up @@ -31,17 +31,5 @@ describe('Utils', () => {
expect(googleCommand.options.region).toEqual('my-region');
});
});

it('should set the provider values for stage and region if provided', () => {
googleCommand.serverless.service.provider = {
stage: 'my-stage',
region: 'my-region',
};

return googleCommand.setDefaults().then(() => {
expect(googleCommand.options.stage).toEqual('my-stage');
expect(googleCommand.options.region).toEqual('my-region');
});
});
});
});

0 comments on commit 7288bee

Please sign in to comment.