Skip to content

Instantly share code, notes, and snippets.

@semipermeable
Created January 7, 2015 03:52
Show Gist options
  • Save semipermeable/1f118bd279136459f435 to your computer and use it in GitHub Desktop.
Save semipermeable/1f118bd279136459f435 to your computer and use it in GitHub Desktop.
# 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