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