Permalink
Browse files

adding all the improvements to the current tagging machine

  • Loading branch information...
hunkybill
hunkybill committed Jul 17, 2008
1 parent f184031 commit 568861f17f7eb88b19b1c819bfd86008f3c65cb2
Showing with 8 additions and 5 deletions.
  1. +8 −5 tasks/geonames_tasks.rake
View
@@ -1,10 +1,11 @@
###
-# Apollo rake tasks
-# @author Chris Scott
-#
-desc 'Geonames import task'
+# Geonames plugin is great for building up and tearing down some commonly needed region tables
+# author Chris Scott
+# author D. Lazar
+
namespace :geonames do
+ desc 'dump - use pgsql to dump data to files'
task :dump => :environment do
puts "*************************************************************************************"
puts " Dumping geonames tables to /db with pg_dump"
@@ -20,6 +21,7 @@ namespace :geonames do
end
end
+ desc 'restore - use pgsql to restore data from files'
task :restore => :environment do
puts "*************************************************************************************"
puts " Restoring geonames tables to from backup in /db "
@@ -36,6 +38,7 @@ namespace :geonames do
end
+ desc 'import - read text files for country, region and city tables to build database'
task :import => :environment do
puts "*************************************************************************************"
puts " Importing geonames "
@@ -44,7 +47,7 @@ namespace :geonames do
Resistor::Geonames.import
end
- desc "Export geonames to /db"
+ desc "export data to yaml files"
task :export => :environment do
puts "*************************************************************************************"
puts " Exporting geonames to db/geonames.yml "

0 comments on commit 568861f

Please sign in to comment.