brennandunn / sharded_database

ActiveRecord plugin that provides the underlying framework to connect to multiple databases at the instance level

This URL has Read+Write access

brennandunn (author)
Thu Feb 12 17:22:37 -0800 2009
commit  19a70539ab3ceac70c8ea702cee6d5efa7635ae1
tree    ae868df96be92f159051e5c9746038eb1a9ee661
parent  335f7b7d73a56477351eadc7279e967e29cda1aa
sharded_database / Rakefile
100644 24 lines (20 sloc) 0.586 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
desc 'Default: run unit tests.'
task :default => :test
 
desc 'Test the sharded_database plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end
 
desc 'Generate documentation for the sharded_database plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'ShardedDatabase'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end