Sha256: 4724163fb1dd4c779cdfb5f2ee1579839286a54663296f0167b3db0e95d4ed9e
Contents?: true
Size: 880 Bytes
Versions: 10
Compression:
Stored size: 880 Bytes
Contents
namespace :sitemap do desc 'Create sitemap and ping search engines' task :refresh do on roles fetch(:sitemap_roles, :web) do within release_path do with rails_env: (fetch(:rails_env) || fetch(:stage)) do execute :rake, "sitemap:refresh" end end end end desc 'Create sitemap without pinging search engines' task :create do on roles fetch(:sitemap_roles, :web) do within release_path do with rails_env: (fetch(:rails_env) || fetch(:stage)) do execute :rake, "sitemap:create" end end end end desc 'Clean up sitemaps in sitemap_generator path' task :clean do on roles fetch(:sitemap_roles, :web) do within release_path do with rails_env: (fetch(:rails_env) || fetch(:stage)) do execute :rake, "sitemap:clean" end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems