lodestone (owner)

Revisions

gist: 203239 Download_button fork
public
Public Clone URL: git://gist.github.com/203239.git
Embed All Files: show embed
tempfile.rb #
1
2
3
4
5
6
7
8
9
10
puts "Starting Premium Summary Update at #{start_time=Time.now}"
PremiumSummary.default_advisors.each_with_index do |advisor,idx|
  puts "(((((( Advisor:#{idx+1} of #{PremiumSummary.default_advisors.count} )))))))"
  [MonthlyPremiumSummary, LifePremiumSummary, LtcPremiumSummary, DiPremiumSummary].each do |summary|
    summary.update_period(advisor, 2009, 9)
    summary.update_period(advisor, 2009, 10)
  end
end
puts "Ending #{end_time=Time.now}"
puts "Process took: #{end_time-start_time}"