Method: Executor.get_dependents

Defined in:
lib/specss/executor.rb

.get_dependentsObject

Returns all dependents of files in changelist



40
41
42
43
44
45
46
47
48
49
# File 'lib/specss/executor.rb', line 40

def get_dependents
  dependents = []
  $changed_files.each do |f|
    dependents_array = Files::Dependencies.get_dependencies(f)
    dependents_array.each do |d|
      dependents.push(d) unless dependents.include? d
    end
  end
  dependents
end