# File lib/whiskey_disk/config/filters/project_scope_filter.rb, line 9 def repository_depth(data, depth = 0) raise 'no repository found' unless data.respond_to?(:has_key?) return depth if data.has_key?('repository') repository_depth(data.values.first, depth + 1) end