public
Description: Repository for improving Rails documentation
Homepage: http://www.rubyonrails.org
Clone URL: git://github.com/lifo/doc-rails.git
Search Repo:
Xavier Noria (author)
Tue Apr 22 08:07:25 -0700 2008
commit  26b77bbbf3adfa05924a180d74a6f62907481cdc
tree    56be5e7b3beb9b77335216e02c411456fdcc8a0e
parent  05386bfb41ba20b54d3a0e8930d15203b99e0688 parent  e4d2621f409d2477a3b3684a8a35a0d2c503b38b
doc-rails / Rakefile
100644 21 lines (16 sloc) 0.559 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'rake'
 
env = %(PKG_BUILD="#{ENV['PKG_BUILD']}") if ENV['PKG_BUILD']
 
PROJECTS = %w(activesupport actionpack actionmailer activeresource activerecord railties)
 
Dir["#{File.dirname(__FILE__)}/*/lib/*/version.rb"].each do |version_path|
  require version_path
end
 
desc 'Run all tests by default'
task :default => :test
 
%w(test rdoc package pgem release).each do |task_name|
  desc "Run #{task_name} task for all projects"
  task task_name do
    PROJECTS.each do |project|
      system %(cd #{project} && #{env} #{$0} #{task_name})
    end
  end
end