mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:50:45 +08:00
11 lines
315 B
Ruby
11 lines
315 B
Ruby
require_dependency 'discourse_ip_info'
|
|
|
|
desc "downloads MaxMind's GeoLite2-City database"
|
|
task "maxminddb:get" do
|
|
puts "Downloading MaxMindDb's GeoLite2-City..."
|
|
DiscourseIpInfo.mmdb_download('GeoLite2-City')
|
|
|
|
puts "Downloading MaxMindDb's GeoLite2-ASN..."
|
|
DiscourseIpInfo.mmdb_download('GeoLite2-ASN')
|
|
end
|