Class: Cleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/rakepp/cleaner.rb

Instance Method Summary collapse

Constructor Details

#initializeCleaner

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