repo.or.cz
/
augment.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
updated to work with miniunit 1.1.0
[augment.git]
/
lib
/
backends
/
clear_backend.rb
blob
485365c2e6bfb53d79ec2a4125913a0891c857fa
1
require 'find'
2
require 'fileutils'
3
4
##
5
# This backend just gets rid of all .augment files in a directory, recursively.
6
class ClearBackend < Backend
7
class << self
8
def run(file)
9
Find.find(file) { |f| FileUtils.rm_rf(f) if f =~ /\.augment$/ }
10
end
11
end
12
13
Augment::BACKENDS['clear'] = self
14
end