Module: Germinator

Defined in:
lib/germinator.rb,
lib/germinator/base.rb,
lib/germinator/seed.rb,
lib/germinator/errors.rb,
lib/germinator/seeder.rb,
lib/germinator/railtie.rb,
lib/germinator/version.rb,
lib/germinator/seed_file.rb,
lib/germinator/seed_config.rb

Defined Under Namespace

Modules: Errors Classes: Base, Railtie, Seed, SeedConfig, SeedFile, Seeder

Constant Summary collapse

SEED_PATH =

Default seed path for the germinate files.

"db/germinate"
VERSION =
"2.1.1"
VERSION_1_TABLE_NAME =

Default table name in the database.

"germinator_migrations"
VERSION_2_TABLE_NAME =
"germinator_seeds"

Class Method Summary collapse

Class Method Details

.germinate(name) ⇒ Object



13
14
15
16
# File 'lib/germinator.rb', line 13

def Germinator.germinate name
  seeder = Germinator::Seeder.new
  seeder.germinate_by_name name
end

.shrivel(name) ⇒ Object



18
19
20
21
# File 'lib/germinator.rb', line 18

def Germinator.shrivel name
  seeder = Germinator::Seeder.new
  seeder.shrivel_by_name name
end