com
TDC POA 2016
Why not?
Text
Our first week
OF CHATS!
ChatOps is a collaboration model that connects people, tools, process, and automation into a transparent workflow. This flow connects the work needed, the work happening, and the work done in a persistent location staffed by the people, bots, and related tools.
=
Also known as Rocket.Bot
Should we call it Rocket.Cat ?
exec = require('child_process').execSync
module.exports = (robot) ->
robot.hear /pm2 start sample/i, (res) ->
try
result = exec 'pm2 startOrRestart /var/www/sample/pm2.json'
res.send '```\n' + result.toString() + '\n```'
catch e
return res.send 'Error: '+ e.stderr.toString()
robot.hear /pm2 stop sample/i, (res) ->
try
result = exec 'pm2 stop /var/www/sample/pm2.json'
res.send '```\n' + result.toString() + '\n```'
catch e
return res.send 'Error: '+ e.stderr.toString()
robot.hear /pm2 status/i, (res) ->
try
result = exec 'pm2 l'
res.send '```\n' + result.toString() + '\n```'
catch e
return res.send 'Error: '+ e.stderr.toString()
robot.hear /branch (.*)/i, (res) ->
try
result = exec 'cd /var/www/sample/ && git checkout '+res.match[1]
res.send '```\n' + result.toString() + '\n```'
catch e
return res.send 'Error: '+ e.stderr.toString()
robot.hear /branch$/i, (res) ->
try
result = exec 'cd /var/www/sample/ && git branch'
res.send '```\n' + result.toString() + '\n```'
catch e
return res.send 'Error: '+ e.stderr.toString()
Extending Rocket.Chat into the world of automated DevOps:
Not only via messages, but with deep integrations and customized UI plugins
Aaron Ogle
Diego Sampaio
Rafael Kellermann
Marcelo Schmidt
Bradley Hilton
Rodrigo Nascimento
Sing Li
Gabriel Engel
And many, many, many more.....
https://rocket.chat
more details at