Sha256: 9ced871e9852357efcabdee7874b17f3cf4c4d822a227a190ac0c5ae1dd1a08e

Contents?: true

Size: 1.09 KB

Versions: 20

Compression:

Stored size: 1.09 KB

Contents

namespace :challah do
  desc "Setup the challah gem within this rails app."
  task :setup => [ "challah:setup:migrations", "challah:unpack:user", "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 User model that is ready to go.

  And some new routes set up for /sign-in and /sign-out. 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..."
      Rake::Task['challah_engine:install:migrations'].invoke
    end

    task :seeds => :environment do
      puts "Populating seed data..."
      Challah::Engine.load_seed
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
challah-1.3.3 lib/tasks/setup.rake
challah-1.3.2 lib/tasks/setup.rake
challah-1.3.1 lib/tasks/setup.rake
challah-1.3.0 lib/tasks/setup.rake
challah-1.2.11 lib/tasks/setup.rake
challah-1.2.10 lib/tasks/setup.rake
challah-1.2.9 lib/tasks/setup.rake
challah-1.2.8 lib/tasks/setup.rake
challah-1.2.7 lib/tasks/setup.rake
challah-1.2.6 lib/tasks/setup.rake
challah-1.2.5 lib/tasks/setup.rake
challah-1.2.5.pre lib/tasks/setup.rake
challah-1.2.4 lib/tasks/setup.rake
challah-1.2.3 lib/tasks/setup.rake
challah-1.2.2 lib/tasks/setup.rake
challah-1.2.1 lib/tasks/setup.rake
challah-1.2.0 lib/tasks/setup.rake
challah-1.2.0.rc lib/tasks/setup.rake
challah-1.1.1 lib/tasks/setup.rake
challah-1.1.0 lib/tasks/setup.rake