lib/ztk/rake/docs.rb in ztk-1.19.0 vs lib/ztk/rake/docs.rb in ztk-1.19.1
- old
+ new
@@ -13,9 +13,11 @@
namespace :ghpages do
desc "Clone GitHub pages under vendor"
task :clone do
+ system(%(rm -rfv #{DOC_PATH}))
+
if !File.exists?(DOC_PATH)
remote = %x(git remote -v | grep 'origin').split[1].strip
FileUtils.mkdir_p(VENDOR_PATH)
Dir.chdir(VENDOR_PATH) do