rake update

This commit is contained in:
Harry Bomrah 2012-11-06 12:17:09 +08:00 committed by chris
parent 23e86bfe31
commit eaf465525a
1 changed files with 13 additions and 0 deletions

13
lib/tasks/desktop.rake Normal file
View File

@ -0,0 +1,13 @@
# encoding: utf-8
namespace :desktop do
task :destroy_build_desktop => :environment do
Desktop.all.destroy_all
u = User.all
u.each do |us|
x = us.initialize_desktop
x.save!
puts "Desktop created for " + us.email.to_s
end
end
end