Sha256: ed3934c9f46e9b5167b7d88f9d97d7e8aee5fa7700d1dfbf0a911e65463328a5

Contents?: true

Size: 594 Bytes

Versions: 6

Compression:

Stored size: 594 Bytes

Contents

namespace :shoppe do
  desc "Load seed data for the Shoppe"
  task :seed => :environment do
    require File.join(Shoppe.root, 'db', 'seeds')
  end
  
  desc "Create a default admin user"
  task :create_default_user => :environment do
    Shoppe::User.create(:email_address => 'admin@example.com', :password => 'password', :password_confirmation => 'password', :first_name => 'Default', :last_name => 'Admin')
    puts
    puts "    New user has been created successfully."
    puts
    puts "    E-Mail Address..: admin@example.com"
    puts "    Password........: password"
    puts
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoppe-0.0.10 lib/tasks/shoppe.rake
shoppe-0.0.9 lib/tasks/shoppe.rake
shoppe-0.0.8 lib/tasks/shoppe.rake
shoppe-0.0.7 lib/tasks/shoppe.rake
shoppe-0.0.6 lib/tasks/shoppe.rake
shoppe-0.0.5 lib/tasks/shoppe.rake