mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:13:31 +02:00
Rename "roles" to "units". Put units in their own folders.
This commit is contained in:
17
lib/units/device/support/properties.js
Normal file
17
lib/units/device/support/properties.js
Normal file
@@ -0,0 +1,17 @@
|
||||
var syrup = require('syrup')
|
||||
|
||||
var logger = require('../../../util/logger')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.dependency(require('./adb'))
|
||||
.define(function(options, adb) {
|
||||
var log = logger.createLogger('device:support:properties')
|
||||
|
||||
function load() {
|
||||
log.info('Loading properties')
|
||||
return adb.getProperties(options.serial)
|
||||
.timeout(10000)
|
||||
}
|
||||
|
||||
return load()
|
||||
})
|
||||
Reference in New Issue
Block a user