public
Description: a tool to organize and maintain an internal gem distribution server
Homepage:
Clone URL: git://github.com/copiousfreetime/stickler.git
Tue Apr 21 09:18:42 -0700 2009
commit  05a7f124216a59a2768e7ba9ee65b0c28a31717f
tree    c03c098d666bd3869c43fce00bbcaf004af72564
parent  da2a9829ebed25b66011da9ec14fd3381d8af05d
stickler / Rakefile
100644 49 lines (43 sloc) 1.918 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#--
# Copyright (c) 2008 Jeremy Hinegardner
# All rights reserved. Licensed under the same terms as Ruby. No warranty is
# provided. See LICENSE and COPYING for details.
#++
 
#-------------------------------------------------------------------------------
# make sure our project's top level directory and the lib directory are added to
# the ruby search path.
#-------------------------------------------------------------------------------
$: << File.expand_path(File.join(File.dirname(__FILE__),"lib"))
$: << File.expand_path(File.dirname(__FILE__))
 
#-------------------------------------------------------------------------------
# load the global project configuration and add in the top level clean and
# clobber tasks so that other tasks can utilize those constants if necessary
#-------------------------------------------------------------------------------
require 'rubygems'
require 'tasks/config.rb'
require 'rake/clean'
 
#-------------------------------------------------------------------------------
# load up all the project tasks and setup the default task to be the
# test:default task.
#-------------------------------------------------------------------------------
require 'stickler/paths'
require 'stickler/version'
Configuration.for("packaging").files.tasks.each do |tasklib|
  import tasklib
end
task :default => 'test:default'
 
#-------------------------------------------------------------------------------
# Finalize the loading of all pending imports and update the top level clobber
# task to depend on all possible sub-level tasks that have a name like
# ':clobber' in other namespaces. This allows us to say:
#
# rake clobber
#
# and it will get everything.
#-------------------------------------------------------------------------------
Rake.application.load_imports
Rake.application.tasks.each do |t|
  if t.name =~ /:clobber/ then
    task :clobber => [t.name]
  end
end