Method: Puppet::Settings::IniFile.update

Defined in:
lib/puppet/settings/ini_file.rb

.update(config_fh) {|manipulator| ... } ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Yields:

  • (manipulator)


7
8
9
10
11
12
# File 'lib/puppet/settings/ini_file.rb', line 7

def self.update(config_fh, &block)
  config = parse(config_fh)
  manipulator = Manipulator.new(config)
  yield manipulator
  config.write(config_fh)
end