Rename "input" plugin to "service". It does many more things than just input.

This commit is contained in:
Simo Kinnunen
2014-05-01 17:45:37 +09:00
parent 395e59a33f
commit 9041eabfc1
6 changed files with 24 additions and 24 deletions

View File

@@ -7,14 +7,14 @@ var wireutil = require('../../../wire/util')
module.exports = syrup.serial()
.dependency(require('../support/router'))
.dependency(require('../support/push'))
.dependency(require('./input'))
.define(function(options, router, push, input) {
.dependency(require('./service'))
.define(function(options, router, push, service) {
var log = logger.createLogger('device:plugins:clipboard')
router.on(wire.PasteMessage, function(channel, message) {
log.info('Pasting "%s" to clipboard', message.text)
var reply = wireutil.reply(options.serial)
input.paste(message.text)
service.paste(message.text)
.then(function() {
push.send([
channel
@@ -33,7 +33,7 @@ module.exports = syrup.serial()
router.on(wire.CopyMessage, function(channel) {
log.info('Copying clipboard contents')
var reply = wireutil.reply(options.serial)
input.copy()
service.copy()
.then(function(content) {
push.send([
channel