|
1 | 1 | Bundler.require(:default, Rails.env)
|
2 | 2 |
|
3 |
| -namespace :content_types do |
4 |
| - desc 'Re-Seeds (will wipe existing ContentTypes!) CortexStarter with Core Custom Content Seed Data' |
5 |
| - task reseed: :environment do |
6 |
| - Rake::Task['content_types:clear'].execute |
7 |
| - Rake::Task['content_types:seed'].execute |
8 |
| - end |
| 3 | +namespace :cortex_starter do |
| 4 | + namespace :content_types do |
| 5 | + desc 'Re-Seeds (will wipe existing ContentTypes!) CortexStarter with Core Custom Content Seed Data' |
| 6 | + task reseed: :environment do |
| 7 | + Rake::Task['cortex_starter:content_types:clear'].execute |
| 8 | + Rake::Task['cortex_starter:content_types:seed'].execute |
| 9 | + end |
9 | 10 |
|
10 |
| - desc 'Seeds CortexStarter with Core Custom Content Seed Data' |
11 |
| - task seed: :environment do |
12 |
| - Rake::Task['cortex:core:media:seed'].execute |
13 |
| - Rake::Task['employer:blog:seed'].execute |
14 |
| - end |
| 11 | + desc 'Seeds CortexStarter with Core Custom Content Seed Data' |
| 12 | + task seed: :environment do |
| 13 | + Rake::Task['cortex:core:media:seed'].execute |
| 14 | + Rake::Task['employer:blog:seed'].execute |
| 15 | + end |
15 | 16 |
|
16 |
| - desc 'Clear Existing Custom Content Data From DB' |
17 |
| - task clear: :environment do |
18 |
| - puts "Clearing ContentTypes..." |
19 |
| - Cortex::ContentType.destroy_all |
20 |
| - puts "Clearing Fields..." |
21 |
| - Cortex::Field.destroy_all |
22 |
| - puts "Clearing ContentItems..." |
23 |
| - Cortex::ContentItem.destroy_all |
24 |
| - puts "Clearing FieldItems..." |
25 |
| - Cortex::FieldItem.destroy_all |
26 |
| - puts "Clearing ContentableDecorators..." |
27 |
| - Cortex::ContentableDecorator.destroy_all |
28 |
| - puts "Clearing Decorators..." |
29 |
| - Cortex::Decorator.destroy_all |
| 17 | + desc 'Clear Existing Custom Content Data From DB' |
| 18 | + task clear: :environment do |
| 19 | + puts "Clearing ContentTypes..." |
| 20 | + Cortex::ContentType.destroy_all |
| 21 | + puts "Clearing Fields..." |
| 22 | + Cortex::Field.destroy_all |
| 23 | + puts "Clearing ContentItems..." |
| 24 | + Cortex::ContentItem.destroy_all |
| 25 | + puts "Clearing FieldItems..." |
| 26 | + Cortex::FieldItem.destroy_all |
| 27 | + puts "Clearing ContentableDecorators..." |
| 28 | + Cortex::ContentableDecorator.destroy_all |
| 29 | + puts "Clearing Decorators..." |
| 30 | + Cortex::Decorator.destroy_all |
| 31 | + end |
30 | 32 | end
|
31 | 33 | end
|
0 commit comments