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

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

#storeObject



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

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