lib/cfa/augeas_parser/writer.rb
# Does modification according to the operation defined in {AugeasElement}
# @param located_entry [LocatedEntry] entry to process
Does modification according to the operation defined in {AugeasElement}
Does modification according to the operation defined in { AugeasElement }
def process_operation(located_entry)
      case located_entry.entry[:operation]
      when :add, nil then @lazy_operations.add(located_entry)
      when :remove then @lazy_operations.remove(located_entry)
      when :modify then modify_entry(located_entry)
      when :keep then recurse_write(located_entry)
      else raise "invalid :operation in #{located_entry.inspect}"
      end
    end
def process_operation ( located_entry ) case located_entry . entry [ :operation ] when :add , nil then @lazy_operations . add ( located_entry ) when :remove then @lazy_operations . remove ( located_entry ) when :modify then modify_entry ( located_entry ) when :keep then recurse_write ( located_entry ) else raise "invalid :operation in #{located_entry.inspect}" end end
Does modification according to the operation defined in {AugeasElement}
Does modification according to the operation defined in { AugeasElement }
located_entry
entry to process
entry to process