lib/cfa/augeas_parser/writer.rb
# Writes the data in *tree* to a given *prefix* in Augeas
# @param prefix [String] where to write *tree* in Augeas
# @param tree [CFA::AugeasTree] tree to write
Writes the data in *tree* to a given *prefix* in Augeas
Writes the data in * tree * to a given * prefix * in Augeas
def write(prefix, tree, top_level: true)
      @lazy_operations = LazyOperations.new(aug) if top_level
      tree.all_data.each do |entry|
        located_entry = LocatedEntry.new(tree, entry, prefix)
        process_operation(located_entry)
      end
      @lazy_operations.run if top_level
    end
def write ( prefix , tree , top_level : true ) @lazy_operations = LazyOperations . new ( aug ) if top_level tree . all_data . each do | entry | located_entry = LocatedEntry . new ( tree , entry , prefix ) process_operation ( located_entry ) end @lazy_operations . run if top_level end
Writes the data in *tree* to a given *prefix* in Augeas
Writes the data in * tree * to a given * prefix * in Augeas
prefix
None
tree
tree to write
tree to write
top_level
<not_specific>