Sha256: e2342d2bd851240bb08ffed63b36e4c3eae84ae73e513156c62cf3d3c0310bf7
Contents?: true
Size: 1.04 KB
Versions: 1
Compression:
Stored size: 1.04 KB
Contents
namespace :ssn_validator do desc "Loads the current file from http://www.socialsecurity.gov/employer/ssns/highgroup.txt if it hasn't already been loaded." task :update_data => :environment do SsnHighGroupCode.load_current_high_group_codes_file end namespace :death_master_file do desc "Loads a death master file. Specify the path of the file: PATH=path. Specify the date of the data: AS_OF=YYYY-MM-DD. Optimized for Mysql databases." task :load_file => :environment do if ENV["PATH"] && ENV["AS_OF"] DeathMasterFileLoader.new(ENV["PATH"],ENV["AS_OF"]).load_file else puts "You must specify the PATH and AS_OF variables: rake ssn_validator:death_master_file:load_file PATH='path/to/file' AS_OF='2009-03-01'" end end desc "Determines the most recent file that has been loaded, and loads all subsequent files in order from the dmf.ntis.gov website. Optimized for Mysql databases." task :update_data => :environment do DeathMasterFileLoader.load_update_files_from_web end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kevintyll-ssn_validator-1.0.0 | lib/tasks/ssn_validator.rake |