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

Add phone number and imei to device identity.

This commit is contained in:
Simo Kinnunen 2014-04-02 13:08:59 +09:00
parent a891e5de49
commit 5183485a53
6 changed files with 47 additions and 1 deletions

View file

@ -0,0 +1,16 @@
var syrup = require('syrup')
var logger = require('../../../util/logger')
module.exports = syrup.serial()
.dependency(require('./input'))
.define(function(options, input) {
var log = logger.createLogger('device:plugins:phone')
function fetch() {
log.info('Fetching phone info')
return input.getProperties(['imei', 'phoneNumber'])
}
return fetch()
})