mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
17 lines
425 B
JavaScript
17 lines
425 B
JavaScript
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.screenPort
|
|
plugin.publicUrl = _.template(options.screenWsUrlPattern)({
|
|
publicIp: options.publicIp
|
|
, publicPort: plugin.publicPort
|
|
, serial: options.serial
|
|
})
|
|
|
|
return plugin
|
|
})
|