Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 50 lines (39 sloc) 0.882 kb
35bfc5a @ciconia Added general Rakefile.
ciconia authored
1 require "rake"
2 require "rake/clean"
3 require "rake/gempackagetask"
4 require "rake/rdoctask"
5 require "fileutils"
6
7 include FileUtils
8
9 PROJECTS = FileList["*"].reject {|f| !File.directory?(f) || f =~ /model_plugins/}
10
11 def with_each_project
12 PROJECTS.each do |p|
13 FileUtils.cd(p)
14 begin
15 yield p
16 ensure
17 FileUtils.cd('..')
18 end
19 end
20 end
21
22 desc "Packages up Sequel and Sequel Model."
23 task :default => [:package]
24 task :package => [:clean]
25 task :doc => [:rdoc]
26
27 task :package do
28 with_each_project {sh "rake package"}
29 end
30
31 task :install do
32 with_each_project {sh "rake install"}
33 end
34
35 task :install_no_docs do
36 with_each_project {sh "rake install_no_docs"}
37 end
38
39 task :uninstall => [:clean] do
40 with_each_project {sh "rake uninstall"}
41 end
42
43 task :spec do
44 with_each_project {sh "rake spec"}
45 end
46
47 task :spec_no_cov do
48 with_each_project {sh "rake spec_no_cov"}
49 end
Something went wrong with that request. Please try again.