Class: ClearBackend
Overview
This backend just gets rid of all .augment files in a directory, recursively.
Class Method Summary collapse
Methods inherited from Backend
Class Method Details
.run(file) ⇒ Object
8 9 10 |
# File 'lib/backends/clear_backend.rb', line 8 def run(file) Find.find(file) { |f| FileUtils.rm_rf(f) if f =~ /\.augment$/ } end |