Sha256: 25cb677e9f134ac366a90c7f2600dba4d856f7dc912dfa11a264ca162d66a391

Contents?: true

Size: 1.03 KB

Versions: 14

Compression:

Stored size: 1.03 KB

Contents

environment = begin

  # Try to require the library.  If we are installed as a gem, this should work.
  # We don't need to load the environment.
  require 'sitemap_generator'
  []

rescue LoadError

  # We must be installed as a plugin.  Make sure the environment is loaded
  # when running all rake tasks.
  [:environment]

end

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

  desc "Delete all Sitemap files in public/ directory"
  task :clean => environment 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

14 entries across 14 versions & 2 rubygems

Version Path
sitemap_generator-1.3.4 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.3.3 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.3.2 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.3.1 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.2.3 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.2.2 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.2.1 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.2.0 tasks/sitemap_generator_tasks.rake
sitemap_generator-1.1.1 tasks/sitemap_generator_tasks.rake
apsoto-sitemap_generator-1.1.0 tasks/sitemap_generator_tasks.rake
apsoto-sitemap_generator-1.1.0.dev tasks/sitemap_generator_tasks.rake
sitemap_generator-1.1.0 tasks/sitemap_generator_tasks.rake
apsoto-sitemap_generator-1.0.1.dev tasks/sitemap_generator_tasks.rake
sitemap_generator-1.0.1 tasks/sitemap_generator_tasks.rake