skull-squadron / seedbed

Plant Seeds like Jack's Beans and climb the stalk to ugh.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seedbed

Manage groups of seeds.

Installation

gem install seedbed

Usage

Create db/seeds/ directory; Place your seed files in the directory.

In seeds.rb

SeedBed.plant "my/seedfile"
SeedBed.plant "another/seedfile"

When rake db:seed is run all seed files invoked by ‘plant’ will be run.

Automatic Rake Tasks

Seedbed automatically generates rake tasks for existing files in the db/seeds directory. For example, if you have the file db/seeds/admin_users.rb the following rake task will be available:

rake db:seed:admin_users

Nested directories are supported and will be used as the namespace in the rake task. For example, the file db/seeds/admin/users.rb would be accessed via:

rake db:seed:admin:users

Copyright © 2010 The Able Few Spencer Markowski. See LICENSE.txt for further details.

About

Plant Seeds like Jack's Beans and climb the stalk to ugh.

License:MIT License


Languages

Language:Ruby 100.0%