mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 13:53:22 +02:00
Allow adb connect URL to be customized.
This commit is contained in:
@@ -15,13 +15,14 @@ module.exports = syrup.serial()
|
||||
.dependency(require('../support/push'))
|
||||
.dependency(require('./group'))
|
||||
.dependency(require('./solo'))
|
||||
.define(function(options, adb, router, push, group, solo) {
|
||||
.dependency(require('./util/urlformat'))
|
||||
.define(function(options, adb, router, push, group, solo, urlformat) {
|
||||
var log = logger.createLogger('device:plugins:connect')
|
||||
, plugin = Object.create(null)
|
||||
, activeServer = null
|
||||
|
||||
plugin.port = options.connectPort
|
||||
plugin.url = util.format('%s:%s', options.publicIp, plugin.port)
|
||||
plugin.url = urlformat(options.connectUrlPattern, plugin.port)
|
||||
|
||||
plugin.start = function() {
|
||||
return new Promise(function(resolve, reject) {
|
||||
|
||||
Reference in New Issue
Block a user