Skip to content

Commit

Permalink
better progress for updateing manifest files
Browse files Browse the repository at this point in the history
  • Loading branch information
branch14 committed Nov 14, 2014
1 parent 04159f3 commit b3ebf6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/tasks/talks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ namespace :talks do

desc "Update or create manifest for all talks (caution: this might take a while)"
task manifests: :environment do
Talk.all.each do |t|
puts "Update manifest file for talk (#{t.id}) #{t.title}"
total = Talk.archived.count
Talk.archived.each_with_index do |t, i|
puts "#{i}/#{total} Update manifest file for talk (#{t.id}) #{t.title}"
t.send(:update_manifest_file!)
end
end
Expand Down

0 comments on commit b3ebf6d

Please sign in to comment.