2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00
discourse/lib/tasks/maxminddb.rake
Sam Saffron 6471fbd453 FIX: maxminddb:get task no longer working
Following our zeitwerk upgrade we needed to be more explicit about the
require
2019-10-04 09:47:33 +10:00

12 lines
337 B
Ruby

# frozen_string_literal: true
desc "downloads MaxMind's GeoLite2-City database"
task "maxminddb:get" do
require 'discourse_ip_info'
puts "Downloading MaxMindDb's GeoLite2-City..."
DiscourseIpInfo.mmdb_download('GeoLite2-City')
puts "Downloading MaxMindDb's GeoLite2-ASN..."
DiscourseIpInfo.mmdb_download('GeoLite2-ASN')
end