Sha256: d3e0af46c134325f4fbfc5d7a5739c01b606533fc501de8b79a48c4c90d77f14
Contents?: true
Size: 662 Bytes
Versions: 3
Compression:
Stored size: 662 Bytes
Contents
namespace :challah do namespace :rolls do desc "Setup the challah-rolls gem within this rails app." task :setup => [ "challah:rolls:setup:migrations", "db:migrate", "challah:rolls:setup:seeds" ] desc "Insert the default users, roles and permissions." task :seeds => [ "challah:rolls:setup:seeds" ] namespace :setup do task :migrations do puts "Copying migrations..." ENV['FROM'] = 'challah_rolls_engine' Rake::Task['railties:install:migrations'].invoke end task :seeds => :environment do puts "Populating seed data..." Challah::Rolls::Engine.load_seed end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
challah-rolls-0.2.0 | lib/tasks/setup.rake |
challah-rolls-0.1.1 | lib/tasks/setup.rake |
challah-rolls-0.1.0 | lib/tasks/setup.rake |