public
Description: git hook to manage lighthouse tickets
Homepage:
Clone URL: git://github.com/gwik/lighthouse-git-hooks.git
lighthouse-git-hooks / hooks / post-receive
100755 15 lines (10 sloc) 0.401 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /usr/bin/env ruby
 
####### EDIT ME !!!! ######
CONFIG_DIR = "/Users/gwik/dev/lighthouse-git-hooks/config"
LIB_DIR = "/Users/gwik/dev/lighthouse-git-hooks"
###########################
 
require LIB_DIR + "/lib/lighthouse/git_hooks"
include Lighthouse::GitHooks
 
rev_old, rev_new, ref = STDIN.read.split(" ")
 
Configuration.load(CONFIG_DIR)
TicketUpdate.new(rev_old, rev_new, ref).parse.send_changes