Skip to content
Adds post commit hooks to your .git/hooks directory.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
lib
spec
.gitignore
CHANGELOG.rdoc
LICENSE
README.textile
Rakefile
githooks.gemspec

README.textile

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!

Something went wrong with that request. Please try again.