summaryrefslogtreecommitdiff
path: root/Rakefile
blob: c3069c4a9e6fd407178a659c03cd959c950f1a8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.

require File.expand_path('../config/application', __FILE__)

Rails.application.load_tasks

desc "update the geolite database"
task :geolite do
  sh 'wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz'
  sh 'gunzip GeoLiteCity.dat.gz'
  sh 'mv -f GeoLiteCity.dat config/GeoLiteCity.dat'
end