From 16e5473418bb8233685f22b82e02aca37fbfa86e Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 6 Nov 2012 12:17:09 +0800 Subject: [PATCH] rake update --- lib/tasks/desktop.rake | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/tasks/desktop.rake diff --git a/lib/tasks/desktop.rake b/lib/tasks/desktop.rake new file mode 100644 index 00000000..9bb968ae --- /dev/null +++ b/lib/tasks/desktop.rake @@ -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 \ No newline at end of file