Created
January 7, 2015 03:52
-
-
Save semipermeable/1f118bd279136459f435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2015 Solano Labs Inc. All Rights Reserved. | |
namespace :dashboard do | |
desc "Update all custom dashboard backing data" | |
task :update_all => :environment do | |
Dashboard.each do |d| | |
puts "Updating #{d.account.handle}/#{d.name}" | |
d.suites.each do |s| | |
s.sparkline_data = nil | |
s.update_sparkline_data | |
SuiteTracker.new(s.id).populate! | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment