lib/tasks/sitemap.rake in sitemap-0.1 vs lib/tasks/sitemap.rake in sitemap-0.2b
- old
+ new
@@ -6,9 +6,10 @@
desc "Generates a new sitemap."
task :generate => :environment do
setup
path = File.join(Rails.public_path, "sitemap.xml")
+ Sitemap::Generator.instance.build!
Sitemap::Generator.instance.save path
end
desc "Ping engines."
task :ping => :environment do