Class: Textus::Doctor::Check::IllegalKeys

Inherits:
Textus::Doctor::Check show all
Defined in:
lib/textus/doctor/check/illegal_keys.rb

Instance Method Summary collapse

Methods inherited from Textus::Doctor::Check

#initialize, name_key

Constructor Details

This class inherits a constructor from Textus::Doctor::Check

Instance Method Details

#callObject



5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/textus/doctor/check/illegal_keys.rb', line 5

def call
  out = []
  store.manifest.entries.each do |entry|
    next unless entry.nested

    base = File.join(store.root, "zones", entry.path)
    next unless File.directory?(base)

    entry.index_filename ? check_index_paths(entry, base, out) : check_all_paths(base, out)
  end
  out
end