Sha256: f13e71e1de4123cdaae6a4161943742f6d72f921c863a4c9aff7e179cb158d3d
Contents?: true
Size: 459 Bytes
Versions: 1
Compression:
Stored size: 459 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 path = File.join(Rails.public_path, "sitemap.xml") Sitemap::Generator.instance.build! Sitemap::Generator.instance.save path File.chmod(0755,path) end desc "Ping engines." task :ping => :environment do Sitemap::Ping.send_request ENV["LOCATION"] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sitemap-0.3 | lib/tasks/sitemap.rake |