forked from adamsalter/sitemap_generator
-
Notifications
You must be signed in to change notification settings - Fork 278
/
Copy pathsitemap_generator.cap
34 lines (32 loc) · 880 Bytes
/
sitemap_generator.cap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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