Rename "roles" to "units". Put units in their own folders.

This commit is contained in:
Simo Kinnunen
2014-08-26 14:34:34 +09:00
parent 7d9d64ddcb
commit 3a9b193f68
63 changed files with 105 additions and 105 deletions

View File

@@ -0,0 +1,20 @@
var syrup = require('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')
}
return data
}
return find()
})