markbates / mack-more

All the extra stuff you could want for the Mack Framework.

mack-more / Rakefile
100644 88 lines (68 sloc) 1.823 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
require File.join(File.dirname(__FILE__), "common_rake_tasks", "rake_task_requires")
GEMS = full_gem_list
 
namespace :install do
  
  desc "Installs all the mack-more gems"
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake install")
    end
  end
  
  GEMS.each do |gem|
    desc "Installs the mack-#{gem} gem."
    task "#{gem}" do
      sh("cd mack-#{gem} && rake install")
    end
  end
  
end
 
namespace :rdoc do
  
  desc "Runs RDoc on all the mack-more gems."
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake rerdoc")
    end
  end
  
  GEMS.each do |gem|
    desc "Runs RDoc on the mack-#{gem} gem."
    task "#{gem}" do
      sh("cd mack-#{gem} && rake rerdoc")
    end
  end
  
  desc "Compiles all the RDoc for all the mack-more gems into the mack-more/doc directory."
  task :integrated do
    sh("rdoc --force --line-numbers --inline-source --exclude spec --exclude example --exclude common_rake_tasks --title 'mack-more' --op mack-more/doc")
  end
  
end
 
namespace :release do
  
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake release")
    end
  end
  
  GEMS.each do |gem|
    task "#{gem}" do
      sh("cd mack-#{gem} && rake release")
    end
  end
  
end
 
namespace :test do
  
  desc "Runs the test suite on all the mack-more gems."
  task :all do
    GEMS.each do |gem|
      sh("cd mack-#{gem} && rake")
    end
  end
  
  GEMS.each do |gem|
    desc "Runs the test suite for the mack-#{gem} gem."
    task "#{gem}" do
      sh("cd mack-#{gem} && rake")
    end
  end
  
end
 
desc "Runs the test suite on all the mack-more gems."
task :default => "test:all"
 
desc "Installs all the mack-more gems"
task :install => "install:all"
 
GEMS.each do |gem|
  desc "Runs the test suite for the mack-#{gem} gem."
  task gem => "test:#{gem}"
end