lib/museo.rb in museo-0.2.0 vs lib/museo.rb in museo-0.3.0
- old
+ new
@@ -36,9 +36,17 @@
end
def clear_configuration!
@configuration = Configuration.new
end
+
+ def clear!(matcher = nil)
+ directory_to_clear = pathname(matcher)
+
+ return unless File.directory?(directory_to_clear)
+
+ FileUtils.remove_dir(directory_to_clear)
+ end
end
class Configuration
attr_accessor :formatter
attr_accessor :rspec