Skip to content
Browse files

weeee

  • Loading branch information...
1 parent c145a07 commit 4cde9f4d6c5f89ebb278b44bd42983a8cf5bf323 @technoweenie technoweenie committed May 28, 2010
Showing with 6 additions and 2 deletions.
  1. +6 −2 Rakefile
View
8 Rakefile
@@ -87,15 +87,19 @@ namespace :seinfeld do
end
end
else
- user = Seinfeld::User.find_by_login(ENV['USER'])
- if user
+ if user = Seinfeld::User.find_by_login(ENV['USER'])
Seinfeld::Updater.run(user)
else
raise "No user found for #{ENV['USER'].inspect}"
end
end
end
+ desc "Clear progress of all users"
+ task :clear_all => :init do
+ Seinfeld::User.paginated_each { |u| u.clear_progress }
+ end
+
desc "Clear progress of USER."
task :clear => :init do
raise "Need USER=" if ENV['USER'].blank?

0 comments on commit 4cde9f4

Please sign in to comment.
Something went wrong with that request. Please try again.