PotatoSalad / auto_migrations forked from pjhyett/auto_migrations

The automatic way to migrate

This URL has Read+Write access

auto_migrations / Rakefile
73cff384 » pjhyett 2008-03-15 migrate automatically 1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4
5 desc 'Default: run unit tests.'
6 task :default => :test
7
8 desc 'Test the auto_migrations plugin.'
9 Rake::TestTask.new(:test) do |t|
10 t.libs << 'lib'
11 t.pattern = 'test/**/*_test.rb'
12 t.verbose = true
13 end
14
15 desc 'Generate documentation for the auto_migrations plugin.'
16 Rake::RDocTask.new(:rdoc) do |rdoc|
17 files = ['README', 'LICENSE', 'lib/**/*.rb']
18 rdoc.rdoc_files.add(files)
19 rdoc.main = "README" # page to start on
20 rdoc.title = "auto_migrations"
21 rdoc.template = File.exists?(t="/Users/chris/ruby/projects/err/rock/template.rb") ? t : "/var/www/rock/template.rb"
22 rdoc.rdoc_dir = 'doc' # rdoc output folder
23 rdoc.options << '--inline-source'
24 end