A website template with lots of features, built with ruby on rails.

bootstrap.rake 598B

1234567891011121314151617
  1. namespace :bootstrap do
  2. desc "Add the Admin user"
  3. task :admin => :environment do
  4. User.create( :first_name => 'admin', :email => 'admin@website.com', :password => '12345678', :admin => true )
  5. puts "Admin user created. \n- Email: admin@website.com \n- Password: 12345678"
  6. end
  7. desc "Create website configuration"
  8. task :config => :environment do
  9. Info.create( :website_name => 'Website', :tagline => 'A Ruby on Rails app template', :default_language => 'en' )
  10. puts "Website configured!"
  11. end
  12. desc "Run all bootstrapping tasks"
  13. task :all => [:admin, :config]
  14. end