MXS-1300: Refactor the way maxctrl is invoked

Making the invocation explicit should allow testing without actually
starting the process fromt the command line. Also returning a promise
allows chaining of commands for testing and verification.
This commit is contained in:
Markus Mäkelä
2017-07-12 16:53:53 +03:00
parent 6c601955d6
commit a082871726
2 changed files with 81 additions and 58 deletions

View File

@ -160,6 +160,9 @@ module.exports = function() {
})
})
})
.catch(function(err) {
logError(JSON.stringify(err, null, 4))
})
}
this.updateValue = function(resource, key, value) {