Skip to content

Instantly share code, notes, and snippets.

@bgruszka
Forked from AlexDisler/gist:3738002
Created February 14, 2014 15:05
Show Gist options
  • Save bgruszka/9002589 to your computer and use it in GitHub Desktop.
Save bgruszka/9002589 to your computer and use it in GitHub Desktop.
module.exports = (robot) ->
robot.respond /deploy to stage/i, (msg) ->
process.chdir('/your/dir')
doing = require('child_process').spawn 'phing', ['remotedeploy','-Denv=stage']
msg.send 'stage deployment request sent'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment