Sha256: 846d09810570b6e7ec1e8dcb6e9c91535097b698fa624d038f6804c5c6718306

Contents?: true

Size: 843 Bytes

Versions: 8

Compression:

Stored size: 843 Bytes

Contents

namespace :deploy do
  namespace :sitemap do
    desc 'Create sitemap and ping search engines'
    task :refresh do
      on roles :web do
        within release_path do
          with rails_env: fetch(:rails_env) do
           execute :rake, "sitemap:refresh"
          end
        end
      end
    end

    desc 'Create sitemap without pinging search engines'
    task :create do
      on roles :web do
        within release_path do
          with rails_env: fetch(:rails_env) do
           execute :rake, "sitemap:create"
          end
        end
      end
    end

    desc 'Clean up sitemaps in sitemap_generator path'
    task :clean do
      on roles :web do
        within release_path do
          with rails_env: fetch(:rails_env) do
           execute :rake, "sitemap:clean"
          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
ftbpro_sitemap_generator-5.0.8 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator_ftbpro-5.0.6 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator_ftbpro-5.0.5 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator_ftbpro-5.0.4 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-5.0.4 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-5.0.3 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-5.0.2 lib/capistrano/tasks/sitemap_generator.cap
sitemap_generator-5.0.1 lib/capistrano/tasks/sitemap_generator.cap