Nincs leírás

Chris Price 6d3e6a137a Merge pull request #15 from reidmv/bug/master/spaces 11 éve
lib 3829e20c49 Allow values with spaces to be parsed and set 11 éve
spec 3829e20c49 Allow values with spaces to be parsed and set 11 éve
tests 8d1fdc5c29 Allow overriding separator string between key/val pairs 11 éve
CHANGELOG e81a69adb5 Updated CHANGELOG and Modulefile; final commit for 0.0.3 release 11 éve
Modulefile e81a69adb5 Updated CHANGELOG and Modulefile; final commit for 0.0.3 release 11 éve
README.markdown 04e2c5ea3b Add CHANGELOG and update README; final commit for 0.0.2 release 12 éve

README.markdown

INI-file module

This module provides resource types for use in managing INI-style configuration files. The main resource type is ini_setting, which is used to manage an individual setting in an INI file. Here's an example usage:

ini_setting { "sample setting":
  path    => '/tmp/foo.ini',
  section => 'foo',
  setting => 'foosetting',
  value   => 'FOO!',
  ensure  => present,
}

A few noteworthy features:

  • The module tries hard not to manipulate your file any more than it needs to. In most cases, it should leave the original whitespace, comments, ordering, etc. perfectly intact.
  • Supports comments starting with either '#' or ';'.
  • Will add missing sections if they don't exist.
  • Supports a "global" section (settings that go at the beginning of the file, before any named sections) by specifying a section name of "".