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