summaryrefslogtreecommitdiff
path: root/lib/puppet/provider
AgeCommit message (Collapse)Author
2013-04-02Update Modulefile and Changelog, prepping for 0.10.0 releaseChris Price
This commit also adds some comments clarifying the new code that was added to support purging.
2013-03-25Merge pull request #29 from kbrezina/subsettingChris Price
Added 'ini_subsetting' custom resource type
2013-03-25Added 'ini_subsetting' custom resource typeKarel Brezina
2013-03-04Add purging support to ini fileDan Bode
This commit adds purging to ini file native types. Purging will only work for child providers that implement the method: self.file_path. This is because collecting all instances of the type ( which is a requirement for purging) is only possible when the path of the file that is being managed can be accessed by the class instance (in the method self.instances.) This commit adds the following method to the internal of the ini_file: - get_settings - has of all settings/values for a given section It also adds the following method to the section class: - setting_names - list of all setting names in a section. These methods are required for the instances method to be able to list the values for all settings of each section.
2012-10-10Add support for removing linesDan Bode
This commit adds the ability to ensure that lines are absent.
2012-10-02Make value a propertyDan Bode
This commit converts value to a property so that it can be managed and modified when a file already has a value set. It was previously treating the line creation state the same as the update case, which is not in alignment with Puppet's model.
2012-10-02Make ruby provider a better parent.Dan Bode
In order to allow the provider to be a parent for other providers, I have implemented the following methods: section, setting, file_path, separator so that they can be overridden by child providers and decouple this provider from its type.
2012-09-19Allow overriding separator string between key/val pairsChris Price
This introduces a new parameter, 'key_val_separator', which can be set in order to override the string that is used as a separator between the key/value pair of a setting line. The default is ' = ', but you could set the param to '=' if you don't want to include whitespace in your settings file.
2012-08-14Fixed regex to match sections and settings with non alphanumericStephen
characters. Fixed writing to file without any sections at all. Fixed exists checking for variable type by always casting to string and added all the tests for the above items.
2012-08-13fix path for require statementStephen
2012-07-28First (basic) working version of ini_setting providerChris Price
2012-06-14Started writing some tests, work has been puntedChris Price