Module: Testdiff::Modified::RubyFiles

Defined in:
lib/testdiff/modified/ruby_files.rb

Overview

Finds all modified Ruby files

Class Method Summary collapse

Class Method Details

.findObject



7
8
9
10
11
# File 'lib/testdiff/modified/ruby_files.rb', line 7

def find
  `git status --porcelain | cut -c4- | grep '.rb'`
    .split("\n")
    .select { |file| File.exist?(file) }
end