From eaf465525a0b6fd059c1163380be407499c2c996 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