mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:23:28 +02:00
Add phone number and imei to device identity.
This commit is contained in:
16
lib/roles/device/plugins/phone.js
Normal file
16
lib/roles/device/plugins/phone.js
Normal 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()
|
||||
})
|
||||
Reference in New Issue
Block a user