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

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/sitemap_generator-6.3.0/lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.3.0 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.2.1 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.2.0 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.1.2 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.1.1 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.1.0 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.0.2 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.0.1 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-6.0.0 lib/capistrano/tasks/sitemap_generator.cap