lib/tap/generator/destroy.rb in bahuvrihi-tap-0.10.3 vs lib/tap/generator/destroy.rb in bahuvrihi-tap-0.10.4

- old
+ new

@@ -17,21 +17,25 @@ log_relative :rm, target file_task.added_files << File.expand_path(target) file_task.rmdir(target) unless pretend end end - + def file(target, options={}) + prepare(target, options) + end + + def prepare(target, options={}) target = File.expand_path(target, target_dir) if File.exists?(target) log_relative :rm, target file_task.added_files << File.expand_path(target) file_task.rm(target) unless pretend else log_relative :missing, target end end + end - end end