Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (8 sloc) 310 Bytes
cp = require('child_process');
module.exports = (robot) ->
robot.respond /deploy/i, (msg) ->
deploy = cp.spawn('./git-across.sh', ['run'])
emit = (data) ->
msg.send(m) for m in data.toString().split("\n") when m.length > 0
deploy.stdout.on('data', emit)
deploy.stderr.on('data', emit)