Method: Clash::Diff#unique_files
- Defined in:
- lib/clash/diff.rb
#unique_files(dir, dir_files, common_files) ⇒ Object
Find files which aren’t common to both directories
69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/clash/diff.rb', line 69 def unique_files(dir, dir_files, common_files) unique = dir_files - common_files if !unique.empty? @test_failures << yellowit("\nMissing from directory #{dir}:\n") unique.each do |f| failure = " - #{f}" failure << "\n" if unique.last == f @test_failures << failure end end end |