mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Rename "roles" to "units". Put units in their own folders.
This commit is contained in:
parent
7d9d64ddcb
commit
3a9b193f68
63 changed files with 105 additions and 105 deletions
|
@ -1,19 +0,0 @@
|
|||
var syrup = require('syrup')
|
||||
|
||||
var wirerouter = require('../../../wire/router')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.dependency(require('./sub'))
|
||||
.dependency(require('./channels'))
|
||||
.define(function(options, sub, channels) {
|
||||
var router = wirerouter()
|
||||
|
||||
sub.on('message', router.handler())
|
||||
|
||||
// Special case, we're hooking into a message that's not actually routed.
|
||||
router.on({$code: 'message'}, function(channel) {
|
||||
channels.keepalive(channel)
|
||||
})
|
||||
|
||||
return router
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue