Sha256: 7506def20f219d042f2ccf08be98f4493faf34aafdcf418569a09d2f848875e9
Contents?: true
Size: 791 Bytes
Versions: 6
Compression:
Stored size: 791 Bytes
Contents
require 'geonames_rails' namespace :geonames_rails do desc 'pull down the geonames data from the server' task :pull_data => :environment do GeonamesRails::Puller.new.pull end desc 'pull geonames data, load into db, then clean up after itself' task :pull_and_load_data => :environment do puller = GeonamesRails::Puller.new writer = ENV['DRY_RUN'] ? GeonamesRails::Writers::DryRun.new : GeonamesRails::Writers::ActiveRecord.new GeonamesRails::Loader.new(puller, writer).load_data end desc 'load the data from files you already have laying about' task :load_data => :environment do writer = ENV['DRY_RUN'] ? GeonamesRails::Writers::DryRun.new : GeonamesRails::Writers::ActiveRecord.new GeonamesRails::Loader.new(nil, writer).load_data end end
Version data entries
6 entries across 6 versions & 1 rubygems