lib/cfa/augeas_parser/writer.rb
# Finds path to remove, as path can be meanwhile renumbered, see
# #remove_entry
Finds path to remove, as path can be meanwhile renumbered, see
remove_entry
Finds path to remove as path can be meanwhile renumbered see remove_entry
def path_to_remove(path)
        if aug.match(path).size == 1
          path
        elsif !aug.match(path + "[1]").empty?
          path + "[1]"
        else
          raise "Unknown augeas path #{path}"
        end
      end
def path_to_remove ( path ) if aug . match ( path ) . size == 1 path elsif ! aug . match ( path + "[1]" ) . empty? path + "[1]" else raise "Unknown augeas path #{path}" end end
Finds path to remove, as path can be meanwhile renumbered, see
remove_entry
Finds path to remove as path can be meanwhile renumbered see remove_entry
path
<not_specific>