module-inifile/lib/puppet/util
Chris Price f0d443fed0 Refactor to clarify implementation of save
The `save` method was previously relying on some really
specific implementation details of the `section` class
(when the start/end_line would be nil, etc.).  This made
the code a bit hard to follow.

This commit introduces a few utility methods in the
`section` class (`is_new_section?`, `is_global?`), and
refactors the `save` method to use them... this makes
the logic a little easier to follow and should hopefully
make it easier to maintain.
2012-10-20 23:14:39 -07:00
..
ini_file Refactor to clarify implementation of save 2012-10-20 23:14:39 -07:00
external_iterator.rb Add support for "global" section at beginning of file 2012-08-17 04:48:28 -07:00
ini_file.rb Refactor to clarify implementation of save 2012-10-20 23:14:39 -07:00