public
Description: A set of Sake tasks to make developing with Git easier.
Clone URL: git://github.com/eventualbuddha/sake-git.git
Search Repo:
Tue Mar 04 13:49:54 -0800 2008
commit  53acbc6559aa5e88b69c5543d423d81866c7a791
tree    0a7802bc47d602b1729913715303c1ce296a7812
sake-git / Rakefile
100644 11 lines (9 sloc) 0.323 kb
1
2
3
4
5
6
7
8
9
10
11
desc "Install the sake-git tasks (use FORCE=yes to overwrite)"
task :install do
  if ENV['FORCE'] == 'yes'
    tasks = `rake -f #{Dir.pwd}/git.rake -T`.to_a.grep(/^rake/).map {|l| l[/^rake (\S+)/, 1]}
    `sake -u #{tasks.join(' ')} 2>/dev/null`
  end
  
  exec("sake -i #{Dir.pwd}/git.rake")
end
 
task :default => :install