1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/lib/rails/tasks/annotations.rake
2009-09-24 16:11:41 -07:00

20 lines
No EOL
559 B
Ruby

require 'rails/source_annotation_extractor'
desc "Enumerate all annotations"
task :notes do
SourceAnnotationExtractor.enumerate "OPTIMIZE|FIXME|TODO", :tag => true
end
namespace :notes do
["OPTIMIZE", "FIXME", "TODO"].each do |annotation|
desc "Enumerate all #{annotation} annotations"
task annotation.downcase.intern do
SourceAnnotationExtractor.enumerate annotation
end
end
desc "Enumerate a custom annotation, specify with ANNOTATION=WTFHAX"
task :custom do
SourceAnnotationExtractor.enumerate ENV['ANNOTATION']
end
end