master
1# Add your own tasks in files placed in lib/tasks ending in .rake,
2# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
4require File.expand_path('../config/application', __FILE__)
5
6Rails.application.load_tasks
7
8desc "update the geolite database"
9task :geolite do
10 sh 'wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
11 sh 'gunzip GeoLiteCity.dat.gz'
12 sh 'mv -f GeoLiteCity.dat config/GeoLiteCity.dat'
13end