class RocketFuel::Fix::FileSanitizerFix
Public Class Methods
files_to_remove()
click to toggle source
# File lib/rocket_fuel/fix/file_sanitizer_fix.rb, line 19 def files_to_remove @files_to_remove end
remove_file(file)
click to toggle source
# File lib/rocket_fuel/fix/file_sanitizer_fix.rb, line 14 def remove_file(file) @files_to_remove ||= [] @files_to_remove << file end
Public Instance Methods
run()
click to toggle source
# File lib/rocket_fuel/fix/file_sanitizer_fix.rb, line 5 def run self.class.files_to_remove.each do |path| if FileTest.exist?(path) FileUtils.rm_rf(path) end end end