lib/cfa/augeas_parser/keys_cache.rb
def fill_cache(aug, prefix)
      @cache = {}
      search_path = "#{prefix}/*"
      loop do
        matches = aug.match(search_path)
        break if matches.empty?

        assign_matches(matches, @cache)

        search_path += "/*"
      end
    end
# initialize cache from passed Augeas object
# @param aug [::Augeas]
# @param prefix [String] Augeas path for which cache should be created
initialize cache from passed Augeas object
initialize cache from passed Augeas object
def fill_cache(aug, prefix)
      @cache = {}
      search_path = "#{prefix}/*"
      loop do
        matches = aug.match(search_path)
        break if matches.empty?
        assign_matches(matches, @cache)
        search_path += "/*"
      end
    end
def fill_cache ( aug , prefix ) @cache = { } search_path = "#{prefix}/*" loop do matches = aug . match ( search_path ) break if matches . empty? assign_matches ( matches , @cache ) search_path += "/*" end end
initialize cache from passed Augeas object
initialize cache from passed Augeas object
aug
prefix
Augeas path for which cache should be created
Augeas path for which cache should be created
None