This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'fastercsv' | |
namespace :import do | |
desc "Imports GCP from a CSV file" | |
task :gcps_from_csv => :environment do | |
filename = "/path/to/lovely.csv" | |
puts "This imports a load of points from a csv file." | |
puts "WARNING: This may bugger up the system, especially if you have a lot of points!" | |
puts "Using File #{filename}" |