Class: Rake::RDocTask
- Inherits:
-
Object
- Object
- Rake::RDocTask
- Defined in:
- lib/rdoc_rails/rake.rb
Class Method Summary collapse
Class Method Details
.remove_task(task = 'rdoc', opts = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rdoc_rails/rake.rb', line 7 def self.remove_task(task='rdoc', opts={}) Rake.remove_task(Rake::Task[task].prerequisites[0]) Rake.remove_task(task) task = task.to_s.split(':') name = task[-1] path = task[0..-2] * ':' rerdoc = opts[:rerdoc] || "re#{name}" clobber = opts[:clobber_rdoc] || "clobber_#{name}" Rake.remove_task("#{path}:#{rerdoc}") Rake.remove_task("#{path}:#{clobber}") end |