Skip to content

Commit

Permalink
weeee
Browse files Browse the repository at this point in the history
  • Loading branch information
technoweenie committed May 29, 2010
1 parent c145a07 commit 4cde9f4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 4cde9f4

Please sign in to comment.