1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-04 10:19:30 +02:00

add new device-reserve and device-release endpoints

This commit is contained in:
Vishal Banthia 2015-12-03 19:55:26 +09:00
parent 04d410bc1d
commit dccacea43f
4 changed files with 207 additions and 20 deletions

View file

@ -871,15 +871,24 @@ program
, 'secret (or $SECRET)'
, String
, process.env.SECRET)
.option('-c, --connect-push <endpoint>'
, 'push endpoint'
, cliutil.list)
.action(function(options) {
if (!options.secret) {
this.missingArgument('--secret')
}
if (!options.connectPush) {
this.missingArgument('--connect-push')
}
require('./units/api')({
port: options.port
, ssid: options.ssid
, secret: options.secret
, endpoints: {
push: options.connectPush
}
})
})
@ -1328,6 +1337,7 @@ program
'api'
, '--port', options.apiPort
, '--secret', options.authSecret
, '--connect-push', options.bindAppPull
])
// websocket
, procutil.fork(__filename, [