Method: Puppet::Util::IniConfig::PhysicalFile#store

Defined in:
lib/puppet/util/inifile.rb

#storeObject



223
224
225
226
227
228
229
230
231
# File 'lib/puppet/util/inifile.rb', line 223

def store
  if @destroy_empty and (sections.empty? or sections.all?(&:destroy?))
    ::File.unlink(@file)
  elsif sections.any?(&:dirty?)
    text = self.format
    @filetype.write(text)
  end
  sections.each(&:mark_clean)
end