treetop.rake 249 B

12345678910
  1. namespace :treetop do
  2. desc "Pre-generate all the .treetop files into .rb files"
  3. task :generate do
  4. Dir.glob(File.expand_path('../../mail/parsers/*.treetop', __FILE__)).each do |filename|
  5. `bundle exec tt #{filename}`
  6. end
  7. end
  8. end