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.15.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.14.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.13.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.12.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.11.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.10.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.9.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.8.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.7.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.6.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.5.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.4.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.3.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.2.pre lib/tasks/cmor_cms_tasks.rake
cmor_cms-0.0.1.pre lib/tasks/cmor_cms_tasks.rake