summaryrefslogtreecommitdiffstats
path: root/lib/puppet/parser/functions
Commit message (Collapse)AuthorAgeFilesLines
* Fix #1829 - Add puppet function versioncmp to compare versionsBrice Figureau2009-03-241-0/+10
| | | | Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fixed #1831 - Added sprintf functionJames Turnbull2009-02-141-0/+17
|
* Fixed #1830 - Added regsubst functionJames Turnbull2009-02-141-0/+93
|
* Fix #1691 - Realize fails with array of Resource ReferencesBrice Figureau2009-02-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following snippet: realize( File["/tmp/a","/tmp/b"] ) is parsed into: AST::Function @name=realize @arguments= AST::ASTArray @children = [ AST::ResourceReference @title= AST::ASTArray @children = [ String(/tmp/a), String(/tmp/b) ] ] When evaluated: ResourceReference gives -> [ File[/tmp/a], File[/tmp/b] ] which means the function arguments are: [[File[/tmp/a], File[/tmp/b]] after evaluating the @arguments ASTArray of AST::Functions. Then the collector complains that it can't find the resource because it is not supposed to work on non-flattened resource array. The fix is to flatten in the realize function (although it can be done more generally in the AST::Function evaluation) before the resources are given to the Collector. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
* Fix #1741 - Add inline_template functionBrice Figureau2008-11-291-0/+21
|
* Fix #1741 - refactor TemplateWrapper, test for template functionBrice Figureau2008-11-291-2/+3
|
* Fixed #1488 - Moved individual functions out of functions.rb intoJames Turnbull2008-08-2612-0/+201
the lib/puppet/parser/functions directory. New functions should be created in this directory.