mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 14:53:24 +02:00
21 lines
489 B
JavaScript
21 lines
489 B
JavaScript
var syrup = require('stf-syrup')
|
|
var deviceData = require('stf-device-db')
|
|
|
|
var logger = require('../../../../util/logger')
|
|
|
|
module.exports = syrup.serial()
|
|
.dependency(require('./identity'))
|
|
.define(function(options, identity) {
|
|
var log = logger.createLogger('device:plugins:data')
|
|
|
|
function find() {
|
|
var data = deviceData.find(identity)
|
|
if (!data) {
|
|
log.warn('Unable to find device data', identity)
|
|
}
|
|
return data
|
|
}
|
|
|
|
return find()
|
|
})
|