We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
namespace :geoip do desc 'update geoip database' task :update do url = 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz' system "curl #{url} | gzip -d > #{Rails.root.to_s}/db/geoip/GeoIP.dat" end end
set :shared_children, shared_children + %w{db/geoip}