Sha256: 78684a742002fd87db62e7d2277536ecc835c10861588a9f2565eae2cd7bcc78

Contents?: true

Size: 566 Bytes

Versions: 55

Compression:

Stored size: 566 Bytes

Contents

namespace :cmor do
  namespace :cms do
    desc 'Imports partials from app/views into the database'
    task :import_partials, [:view_path, :force] => [:environment] do |_t, args|
      args.with_defaults(view_path: Rails.root.join(*%(app views)), force: false)
      Cmor::Cms::ImportPartialsService.call(args)
    end

    desc 'Adds homepages for all (or given) locales'
    task :add_homepages, [:locales] => [:environment] do |_t, args|
      args.with_defaults(locales: I18n.available_locales)
      Cmor::Cms::AddHomepagesService.call(args)
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
cmor_cms-0.0.59.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.58.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.57.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.56.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.55.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.54.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.53.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.52.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.51.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.50.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.49.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.48.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.45.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.44.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.43.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.42.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.41.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.40.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.39.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.38.pre lib/tasks/cmor_cms_tasks.rake