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
c8c2d151 » gwik 2008-07-05 adding sample hooks 1 #! /usr/bin/env ruby
2b36d72f » gwik 2008-07-05 fixes on hooks and users 2
3 ####### EDIT ME !!!! ######
4 CONFIG_DIR = "/Users/gwik/dev/lighthouse-git-hooks/config"
5 LIB_DIR = "/Users/gwik/dev/lighthouse-git-hooks"
6 ###########################
7
8 require LIB_DIR + "/lib/lighthouse/git_hooks"
c8c2d151 » gwik 2008-07-05 adding sample hooks 9 include Lighthouse::GitHooks
10
4915efb8 » gwik 2008-07-05 update hook 11 rev_old, rev_new, ref = STDIN.read.split(" ")
12
2b36d72f » gwik 2008-07-05 fixes on hooks and users 13 Configuration.load(CONFIG_DIR)
dcf9a1d4 » gwik 2008-07-05 improve ticket message 14 TicketUpdate.new(rev_old, rev_new, ref).parse.send_changes