cartodb/lib/tasks/maps.rake
2020-06-15 10:58:47 +08:00

13 lines
303 B
Ruby

require 'carto/export/map_statistics'
namespace :cartodb do
namespace :maps do
desc 'Get CSV with all maps info'
task map_info_csv: :environment do
ms = Carto::Export::MapStatistics.new
ms.run!
puts "Here's your file: #{ms.filepath}\nThanks for coming :)"
end
end
end