Class: ClearBackend

Inherits:
Backend show all
Defined in:
lib/backends/clear_backend.rb

Overview

This backend just gets rid of all .augment files in a directory, recursively.

Class Method Summary collapse

Methods inherited from Backend

with_no_output, write_layers

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