Move support plugins to their own folder.

This commit is contained in:
Simo Kinnunen
2014-03-17 11:03:20 +09:00
parent 3d20b06f7f
commit 07a06460bf
19 changed files with 31 additions and 31 deletions

View File

@@ -0,0 +1,19 @@
var syrup = require('syrup')
var zmq = require('zmq')
var logger = require('../../../util/logger')
module.exports = syrup()
.define(function(options) {
var log = logger.createLogger('device:plugins:push')
// Output
var push = zmq.socket('push')
options.endpoints.push.forEach(function(endpoint) {
log.info('Sending output to %s', endpoint)
push.connect(endpoint)
})
return push
})