remove entire output dir, not just a single version

This commit is contained in:
Mike Dirolf 2009-04-23 15:39:57 -04:00
parent bb6d0330c2
commit 1c5bb1405f
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ desc "Generate documentation"
task :rdoc do
version = eval(File.read("mongo-ruby-driver.gemspec")).version
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'`"
end