1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 02:29:26 +02:00

fix spell error

This commit is contained in:
hzsunshx 2015-09-22 17:38:41 +08:00
parent 855964bff1
commit dff5835105
4 changed files with 8 additions and 8 deletions

View file

@ -19,7 +19,7 @@ module.exports = syrup.serial()
var log = logger.createLogger('device:plugins:filesystem')
var plugin = Object.create(null)
plugin.retrive = function(file) {
plugin.retrieve = function(file) {
log.info('Retriving file %s', file)
return adb.pull(options.serial, file)
@ -37,7 +37,7 @@ module.exports = syrup.serial()
// if this is a new store type, somethings need add to units/storage/plugins/
return storage.store('blob', transfer, {
filename: path.basename(file),
contentType: 'text/plain', // FIXME(ssx): need to detect file type
contentType: 'application/octet-stream', // FIXME(ssx): need to detect file type
knownLength: stats.size
})
})
@ -49,7 +49,7 @@ module.exports = syrup.serial()
router.on(wire.FileSystemGetMessage, function(channel, message) {
var reply = wireutil.reply(options.serial)
plugin.retrive(message.file)
plugin.retrieve(message.file)
.then(function(file){
push.send([
channel,
@ -57,7 +57,7 @@ module.exports = syrup.serial()
])
})
.catch(function(err){
log.error('File retrive %s failed\n%s', message.file, err.stack)
log.error('File retrieve %s failed\n%s', message.file, err.stack)
push.send([
channel,
reply.fail(err.message)