Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (16 sloc) 1.119 kb
2dfcb84 Initial creation
Robert R Evans authored
1 h1. Githooks
befdb07 Adding readme
Robert R Evans authored
2
3 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.
4
5 h2. How to Use
6
7 Install the gem: sudo gem install revans-githooks
8
9 Once installed, cd to the root of your project directory and do the following:
10
e97688a Adding space for the code view
Robert R Evans authored
11 <pre><code>
5fee3a8 Adding space for the code view
Robert R Evans authored
12 githooks project_name --login your_campfire_login --pass campfire_password --domain campfire_subdmain --room "campfire room name"
e97688a Adding space for the code view
Robert R Evans authored
13 </code></pre>
befdb07 Adding readme
Robert R Evans authored
14
15 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:
16
e97688a Adding space for the code view
Robert R Evans authored
17 <pre><code>
5fee3a8 Adding space for the code view
Robert R Evans authored
18 function campfire_hook {
19 githooks $1 --login robo@facollective.com --pass password --domain facollective --room "War Room"
20 }
e97688a Adding space for the code view
Robert R Evans authored
21 </code></pre>
ffc31fc Better formatting
Robert R Evans authored
22
befdb07 Adding readme
Robert R Evans authored
23
704e666 More formatting
Robert R Evans authored
24 Then I can just do *campfire_hook project_name*.
befdb07 Adding readme
Robert R Evans authored
25
704e666 More formatting
Robert R Evans authored
26 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.