Sha256: 4f54a3b89817eba5eea4e5a3f312bf77ab995b2ce19db6b3a12c86502490886b

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

namespace :resume_parser do
  desc "Parses resume file.Specify a file name as 'rake resume_parser:parse <file name>'"
  task :parse => :environment do
  	if (ARGV.size < 2)
  		puts 'Please specify a file name as "rake resume_parser:parse <file name>"'
  	else
  		file_name = ARGV.last
  		resume = Resume.new

  		puts "--------Parsing file #{file_name}--------"

      if resume.parse(file_name)
        puts "--------file #{file_name} parsed--------"
      end
      task file_name.to_sym do ; end
  	end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_work_effort-4.2.0 lib/tasks/resume_parser.rake