Sha256: 39fa60a06074fa7d6cd1c5c4f830953db987521369224417713fe55a37838efe
Contents?: true
Size: 1.14 KB
Versions: 16
Compression:
Stored size: 1.14 KB
Contents
namespace :challah do desc "Setup the challah gem within this rails app." task :setup => [ "challah:setup:migrations", "db:migrate", "challah:setup:seeds", "challah:users:create", "challah:banner" ] task :banner do banner = <<-str ========================================================================== Challah has been set up successfully! Your app now has a few new models: - User - Role - Permission And some new routes set up for /login and /logout. You can use these for the built-in log in page or roll your own if you'd prefer. The user that you just created is ready to log in. ========================================================================== str puts banner end desc "Insert the default users, roles and permissions." task :seeds => [ "challah:setup:seeds" ] namespace :setup do task :migrations do puts "Copying migrations..." ENV['FROM'] = 'challah_engine' Rake::Task['railties:install:migrations'].invoke end task :seeds => :environment do puts "Populating seed data..." Challah::Engine.load_seed end end end
Version data entries
16 entries across 16 versions & 1 rubygems