Sha256: f11ae5dcbd5474cf383545b19b2944d5e3cb1bbed0ba1a36c777f10ff6daf01f
Contents?: true
Size: 503 Bytes
Versions: 3
Compression:
Stored size: 503 Bytes
Contents
namespace :sitemap do def setup require File.join(Rails.root, "config", "sitemap") end desc "Generates a new sitemap." task :generate => :environment do setup root = Sitemap.configuration.save_path || ENV["LOCATION"] || Rails.public_path path = File.join(root, "sitemap.xml") Sitemap::Generator.instance.build! Sitemap::Generator.instance.save path end desc "Ping engines." task :ping => :environment do Sitemap::Ping.send_request ENV["LOCATION"] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sitemap-0.3.3 | lib/tasks/sitemap.rake |
sitemap-0.3.2 | lib/tasks/sitemap.rake |
sitemap-0.3.1 | lib/tasks/sitemap.rake |