public
Description: Enables a post-commit hook to your repositories that sends growl notifications around your local network
Homepage:
Clone URL: git://github.com/benschwarz/gitnotify.git
gitnotify / Rakefile
100644 22 lines (19 sloc) 0.618 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
GEM_DIR = File.dirname(__FILE__) + "/pkg"
 
desc "Build the gitnotify gem"
task :gem do
  gemspec = File.dirname(__FILE__) + "/gitnotify.gemspec"
  `gem build #{gemspec}`
  Dir.mkdir(GEM_DIR) unless File.exist?(GEM_DIR)
  `mv *.gem pkg`
end
 
desc "Build and install the gitnotify gem"
task :install_gem => :gem do
  Dir.chdir(GEM_DIR) do
    `sudo gem install *.gem`
  end
  puts "***********************"
  puts "gitnotify gem installed"
  puts "***********************"
  puts ""
  puts "run 'gitnotify enable-hook' from within a git repository to install a post-commit hook to that will enable Growl broadcasts"
end