Sha256: 017694b5026cdb4d7aa7b480d09458b44ab5dae64b36096914b96b1a05bca7ed

Contents?: true

Size: 810 Bytes

Versions: 7

Compression:

Stored size: 810 Bytes

Contents

begin
  require 'sitemap_generator'
rescue LoadError, NameError
  # Application should work without vlad
end

namespace :sitemap do
  desc "Install a default config/sitemap.rb file"
  task :install do
    SitemapGenerator::Utilities.install_sitemap_rb(verbose)
  end

  desc "Delete all Sitemap files in public/ directory"
  task :clean do
    SitemapGenerator::Utilities.clean_files
  end

  desc "Create Sitemap XML files in public/ directory (rake -s for no output)"
  task :refresh => ['sitemap:create'] do
    SitemapGenerator::Sitemap.ping_search_engines
  end

  desc "Create Sitemap XML files (don't ping search engines)"
  task 'refresh:no_ping' => ['sitemap:create']

  task :create => [:environment] do
    SitemapGenerator::Sitemap.verbose = verbose
    SitemapGenerator::Sitemap.create
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
airblade-sitemap_generator-0.3.5 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.0.0 tasks/sitemap_generator_tasks.rake
airblade-sitemap_generator-0.3.4 tasks/sitemap_generator_tasks.rake
sitemap_generator-0.3.3 tasks/sitemap_generator_tasks.rake
sitemap_generator-0.3.2 tasks/sitemap_generator_tasks.rake
sitemap_generator-0.3.1 tasks/sitemap_generator_tasks.rake
sitemap_generator-0.3.0 tasks/sitemap_generator_tasks.rake