Skip to content

Instantly share code, notes, and snippets.

@nuclearsandwich
Created July 12, 2012 00:05
Show Gist options
  • Save nuclearsandwich/3094607 to your computer and use it in GitHub Desktop.
Save nuclearsandwich/3094607 to your computer and use it in GitHub Desktop.
Ship directly from the command line via tmux, weechat, and hubot.
#!/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