mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
Integrate new minicap along with a moderate rewrite. What's currently missing is recovering from socket death.
This commit is contained in:
17
lib/units/device/plugins/screen/options.js
Normal file
17
lib/units/device/plugins/screen/options.js
Normal file
@@ -0,0 +1,17 @@
|
||||
var syrup = require('stf-syrup')
|
||||
var _ = require('lodash')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.define(function(options) {
|
||||
var plugin = Object.create(null)
|
||||
|
||||
plugin.devicePort = 9002
|
||||
plugin.publicPort = options.ports.pop()
|
||||
plugin.publicUrl = _.template(options.screenWsUrlPattern)({
|
||||
publicIp: options.publicIp
|
||||
, publicPort: plugin.publicPort
|
||||
, serial: options.serial
|
||||
})
|
||||
|
||||
return plugin
|
||||
})
|
||||
Reference in New Issue
Block a user