Class: Cleaner
- Inherits:
-
Object
- Object
- Cleaner
- Defined in:
- lib/rakepp/cleaner.rb
Instance Method Summary collapse
-
#initialize ⇒ Cleaner
constructor
A new instance of Cleaner.
Constructor Details
#initialize ⇒ Cleaner
Returns a new instance of Cleaner.
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/rakepp/cleaner.rb', line 2 def initialize() desc "Clean all artifacts" task :clean do Rake::Task.tasks.reverse_each do | t | FileUtils.rm_rf(t.name) if File.exists?(t.name) end end desc "Force Recalc of dependencies" task :cleanDeps do All.depFiles.each {|f|FileUtils.rm(f)} end end |