Method: Rake::Cleaner.cleanup
- Defined in:
- lib/rake/clean.rb
.cleanup(file_name, opts = {}) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/rake/clean.rb', line 30 def cleanup(file_name, opts={}) begin opts = { verbose: Rake.application..trace }.merge(opts) rm_r file_name, opts rescue StandardError => ex puts "Failed to remove #{file_name}: #{ex}" unless file_already_gone?(file_name) end end |