summaryrefslogtreecommitdiffstats
path: root/spec/unit/property.rb
Commit message (Collapse)AuthorAgeFilesLines
* Adding metadata delegation from param to resourceLuke Kanies2009-08-031-5/+0
| | | | | | | | | | This is for file, line, version, and tags, with the parameter name added to the tags. This is mostly so logs generated by the parameters work better. Signed-off-by: Luke Kanies <luke@madstop.com>
* Add an unmunge capability to type parameters and propertiesBrice Figureau2009-05-021-0/+16
| | | | | | | | | | | | | Unmunge is the reverse of munge. While munge allows the type to return a different parameter value or properties should than the one it was created with, unmunge does the reverse. It can be used for instance to store a value in a different representation but still be able to return genuine value to the outside world. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixing tests broken by fileserving and other refactoring.Luke Kanies2008-11-081-5/+0
| | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Switched all value management in props/params to internal classes.Luke Kanies2008-11-041-16/+264
| | | | | | | | | | | This is a significant refactor of some very murky code, and it's all much cleaner and more readable now. All of the 'newvalue' methods and any value-related code is in a ValueCollection class. This puts us in a good position to refactor the Property and Parameter classes more completely. Signed-off-by: Luke Kanies <luke@madstop.com>
* Removing some code in Parameter that is unnecessary.Luke Kanies2008-09-231-0/+11
| | | | | | | | | It's duplicated in Property, but was only ever called if the instance was Property -- in other words, the base class new about its subclass, but the subclass overrode that method any way. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixed #1595 - Internally, Property#retrieve is no longer calledLuke Kanies2008-09-231-0/+24
when no 'should' value is available for a resource.