Skip to content

Instantly share code, notes, and snippets.

@AlexDisler
Created September 17, 2012 15:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AlexDisler/3738002 to your computer and use it in GitHub Desktop.
Save AlexDisler/3738002 to your computer and use it in GitHub Desktop.
Execute phing on the server using hubot
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