Merge pull request #830 from embark-framework/feature/process-wrapper-options
Better manage default options
This commit is contained in:
commit
8b28bb9691
|
@ -14,10 +14,11 @@ class ProcessWrapper {
|
|||
*
|
||||
* @param {Options} options pingParent: true by default
|
||||
*/
|
||||
constructor(options = {pingParent: true}) {
|
||||
constructor(options = {}) {
|
||||
this.options = Object.assign({pingParent: true}, options);
|
||||
this.interceptLogs();
|
||||
this.events = new Events();
|
||||
if(options.pingParent) {
|
||||
if(this.options.pingParent) {
|
||||
this.pingParent();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue