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