Class: Alchemy::Seeder

Inherits:
Object
  • Object
show all
Extended by:
Shell
Defined in:
lib/alchemy/seeder.rb

Overview

This seeder builds Alchemy pages in your database.

Create a db/seeds/alchemy/pages.yml and db/seeds/alchemy/users.yml files and put Alchemy::Seeder.seed! into your db/seeds.rb file.

Then run rake db:seed

Constant Summary

Constants included from Shell

Alchemy::Shell::COLORS

Class Method Summary collapse

Methods included from Shell

add_todo, desc, display_todos, log, silence!, silenced?, todo, todos, verbose!

Class Method Details

.seed!Object

Put Alchemy::Seeder.seed! into your db/seeds.rb file and run rake db:seed.



19
20
21
22
# File 'lib/alchemy/seeder.rb', line 19

def seed!
  try_seed_pages
  seed_users if user_seeds_file.file?
end