remove entire output dir, not just a single version
This commit is contained in:
parent
bb6d0330c2
commit
1c5bb1405f
2
Rakefile
2
Rakefile
|
@ -23,7 +23,7 @@ desc "Generate documentation"
|
||||||
task :rdoc do
|
task :rdoc do
|
||||||
version = eval(File.read("mongo-ruby-driver.gemspec")).version
|
version = eval(File.read("mongo-ruby-driver.gemspec")).version
|
||||||
out = File.join('html', version.to_s)
|
out = File.join('html', version.to_s)
|
||||||
FileUtils.rm_rf(out)
|
FileUtils.rm_rf('html')
|
||||||
system "rdoc --main README.rdoc --op #{out} --inline-source --quiet README.rdoc `find lib -name '*.rb'`"
|
system "rdoc --main README.rdoc --op #{out} --inline-source --quiet README.rdoc `find lib -name '*.rb'`"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue