rake update

This commit is contained in:
Harry Bomrah 2012-11-06 12:17:09 +08:00
parent b40d4702d5
commit 16e5473418
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