mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
21 lines
261 B
JavaScript
21 lines
261 B
JavaScript
'use strict';
|
|
|
|
const _ = require('lodash');
|
|
|
|
class Config {
|
|
|
|
constructor(S, config) {
|
|
this._class = 'Config';
|
|
this.S = S;
|
|
|
|
if (config) this.update(config);
|
|
}
|
|
|
|
update(config) {
|
|
return _.merge(this, config);
|
|
}
|
|
}
|
|
|
|
module.exports = Config;
|
|
|