Sha256: d0acfa1e4ff159a7ba648ff8179bd192e09d92d4eb1008dc25c73bc0faa2d3f6

Contents?: true

Size: 351 Bytes

Versions: 12

Compression:

Stored size: 351 Bytes

Contents

namespace :spina do
  desc "Generate basic pages"
  task bootstrap: [:create_basic_pages]

  desc "Create custom pages from spina config"
  task :create_basic_pages => :environment do
    puts "Bootstrap Spina!"
    puts "Creating Homepage..."
    Spina::Page.where(name: 'homepage').where(deletable: false).first_or_create!
    puts "Done"
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spina-0.6.22 lib/tasks/spina_tasks.rake
spina-0.6.21 lib/tasks/spina_tasks.rake
spina-0.6.20 lib/tasks/spina_tasks.rake
spina-0.6.19 lib/tasks/spina_tasks.rake
spina-0.6.18 lib/tasks/spina_tasks.rake
spina-0.6.17 lib/tasks/spina_tasks.rake
spina-0.6.16 lib/tasks/spina_tasks.rake
spina-0.6.15 lib/tasks/spina_tasks.rake
spina-0.6.14 lib/tasks/spina_tasks.rake
spina-0.6.13 lib/tasks/spina_tasks.rake
spina-0.6.12 lib/tasks/spina_tasks.rake
spina-0.6.11 lib/tasks/spina_tasks.rake