Created
July 12, 2012 00:05
-
-
Save nuclearsandwich/3094607 to your computer and use it in GitHub Desktop.
Ship directly from the command line via tmux, weechat, and hubot.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
CHAT_SESSION=${CHAT_SESSION:-weechat} | |
CHAT_ROOM=${CHAT_ROOM:-ops} | |
GITHUB_ACCOUNT=${GITHUB_ACCOUNT:-$(git config github.user)} | |
PROJECT=${PROJECT:-"$GITHUB_ACCOUNT/$(basename `pwd`)"} | |
tmux send-keys -t $CHAT_SESSION "/buffer $CHAT_ROOM" C-m | |
tmux send-keys -t $CHAT_SESSION "hubot deploy $PROJECT" C-m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment