mirror of
https://github.com/openstf/stf
synced 2025-10-04 02:09:32 +02:00
Remove old utility methods.
This commit is contained in:
parent
b9cec82941
commit
08be119883
1 changed files with 0 additions and 32 deletions
|
@ -73,38 +73,6 @@ var wireutil = {
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
}
|
}
|
||||||
, makeDevicePropertiesMessage: function(serial, properties) {
|
|
||||||
return wireutil.envelope(new wire.DevicePropertiesMessage(
|
|
||||||
serial
|
|
||||||
, Object.keys(properties).map(function(key) {
|
|
||||||
return new wire.DeviceProperty(key, properties[key])
|
|
||||||
})
|
|
||||||
))
|
|
||||||
}
|
|
||||||
, makeShellCommandMessage: function(channel, command) {
|
|
||||||
return wireutil.envelope(new wire.ShellCommandMessage(
|
|
||||||
channel
|
|
||||||
, command
|
|
||||||
))
|
|
||||||
}
|
|
||||||
, makeShellCommandDataMessage: function(serial, seq, chunk) {
|
|
||||||
return wireutil.envelope(new wire.ShellCommandDataMessage(
|
|
||||||
serial
|
|
||||||
, seq
|
|
||||||
, chunk
|
|
||||||
))
|
|
||||||
}
|
|
||||||
, makeShellCommandDoneMessage: function(serial) {
|
|
||||||
return wireutil.envelope(new wire.ShellCommandDoneMessage(
|
|
||||||
serial
|
|
||||||
))
|
|
||||||
}
|
|
||||||
, makeShellCommandFailMessage: function(serial, reason) {
|
|
||||||
return wireutil.envelope(new wire.ShellCommandFailMessage(
|
|
||||||
serial
|
|
||||||
, reason
|
|
||||||
))
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = wireutil
|
module.exports = wireutil
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue