revans / Githooks
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
tree 249b93b8f6feb8a4c0e99fa3f5894b61d0892790
parent e97688a6fa74f11a4af99d803c8db529c2570920
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Fri Jun 12 09:11:04 -0700 2009 | |
| |
CHANGELOG.rdoc | Thu Jun 11 15:15:05 -0700 2009 | |
| |
LICENSE | Thu Jun 11 15:15:05 -0700 2009 | |
| |
README.textile | Fri Jun 12 09:29:53 -0700 2009 | |
| |
Rakefile | Thu Jun 11 15:15:05 -0700 2009 | |
| |
bin/ | Thu Jun 11 15:15:05 -0700 2009 | |
| |
githooks.gemspec | Thu Jun 11 15:15:05 -0700 2009 | |
| |
lib/ | Fri Jun 12 09:17:08 -0700 2009 | |
| |
spec/ | Thu Jun 11 15:15:05 -0700 2009 |
Githooks
Githooks is a gem that creates post-commit hooks for your application – if you are using git, of course. ;) Currently, it is just creating a post-commit hook to a campfire room of your choosing. That’s all I need it for, for now.
How to Use
Install the gem: sudo gem install revans-githooks
Once installed, cd to the root of your project directory and do the following:
githooks project_name --login your_campfire_login --pass campfire_password --domain campfire_subdmain --room "campfire room name"
This is a pretty log command, so I’d suggest writing a bash script where you can put in the login, password, domain and room details and just pass the project name to githooks. Here is what I have in my ~/.bash_profile:
function campfire_hook {
githooks $1 --login robo@facollective.com --pass password --domain facollective --room "War Room"
}
Then I can just do campfire_hook project_name.
That’s about it. I’m sure I’ll be adding more to this as we have the need. If you feel you need more hooks, fork it and submit patches. Cheers!
