PotatoSalad / auto_migrations forked from pjhyett/auto_migrations
- Source
- Commits
- Network (11)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
533b77f
auto_migrations / Rakefile
| 73cff384 » | pjhyett | 2008-03-15 | 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 | ||||
