Method: CleanUp::Rules::CopyFile#call
- Defined in:
- lib/clean_up/rules/copy_file.rb
#call(entry, target) ⇒ Object
8 9 10 11 12 |
# File 'lib/clean_up/rules/copy_file.rb', line 8 def call(entry, target) if match_conditions?(entry) FileUtils.cp(entry, full_target_folder(target), verbose: true) end end |