2019-05-03 08:17:27 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-10-09 17:21:41 +03:00
|
|
|
desc "downloads MaxMind's GeoLite2-City database"
|
2019-05-28 10:28:57 +10:00
|
|
|
task "maxminddb:get" do
|
2023-01-09 12:10:19 +00:00
|
|
|
require "discourse_ip_info"
|
2019-10-04 09:47:22 +10:00
|
|
|
|
2019-04-10 12:37:29 +03:00
|
|
|
puts "Downloading MaxMindDb's GeoLite2-City..."
|
2023-01-09 12:10:19 +00:00
|
|
|
DiscourseIpInfo.mmdb_download("GeoLite2-City")
|
2018-10-09 17:21:41 +03:00
|
|
|
|
2019-04-10 12:37:29 +03:00
|
|
|
puts "Downloading MaxMindDb's GeoLite2-ASN..."
|
2023-01-09 12:10:19 +00:00
|
|
|
DiscourseIpInfo.mmdb_download("GeoLite2-ASN")
|
2018-10-09 17:21:41 +03:00
|
|
|
end
|