Sha256: 6b2f784b87b62d6c764e721726d9045316d39dd0f8778b14f79fa42706c3cb81

Contents?: true

Size: 675 Bytes

Versions: 20

Compression:

Stored size: 675 Bytes

Contents

# desc "Explaining what the task does"
# task :camaleon_cms do
#   # Task goes here
# end

namespace :camaleon_cms do
  task :sitemap => :environment do
    include Rails.application.routes.url_helpers
    include Frontend::ApplicationHelper
    include SiteHelper
    include PluginsHelper
    include HooksHelper

    DynamicSitemaps.configure do |config|
      config.config_path = File.join($camaleon_engine_dir, "config", "sitemap.rb")
    end

    start_time = Time.now
    DynamicSitemaps::Logger.info "Generating sitemap..."
    DynamicSitemaps.generate_sitemap
    DynamicSitemaps::Logger.info "Done generating sitemap in #{Time.now - start_time} seconds."
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
camaleon_cms-1.1.0 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.9 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.8 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.7 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.6 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.5 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.4 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.3 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.2 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0.1 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-1.0 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.2.1 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.2.0 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.1.9 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.1.8 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.1.7 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.1.6 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.1.5 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.1.4 lib/tasks/camaleon_cms_tasks.rake
camaleon_cms-0.1.3 lib/tasks/camaleon_cms_tasks.rake