summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions
AgeCommit message (Collapse)Author
2015-03-03Add support for hashes in the prefix functionStefan Goethals
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2015-03-03URI.escape for the array case was incorrect.Bryon Roché
The previous commit to uriescape() changed the implementation to use the ruby default escape list for URI.escape(), but did not change the call triggered when uriescape() was called on an array, triggering ruby errors.
2015-03-03Merge pull request #407 from adamcrews/ceiling_functionMorgan Haskel
Add a ceiling function to complement the floor function.
2015-03-02Loosen the restrictions of upcase and allow for recursion of the objects and ↵Travis Fields
only worry if the object responds to upcase
2015-02-26Fix issue with Ruby 1.8.7 which did not allow for the return in an each_pair ↵Travis Fields
of the hash
2015-02-25Add Hash to upcaseTravis Fields
2015-02-19Check for string before copyingMorgan Haskel
2015-02-14(MODULES-1771) Don't modify input to is_domain_name()Sean Millichamp
Fix is_domain_name() so it dup's its incoming argument to avoid changing the original with a later chomp!
2015-02-12(MODULES-1738) Don't modify global seed in fqdn_rotate()Eli Young
As per puppetlabs/puppet@292233c, this leaves the global seed in a deterministic state, which is bad. Puppet::Util.deterministic_rand() exists to avoid running into this issue, but is only present starting in Puppet 3.2.0.
2015-02-01Add a ceiling function to complement the floor function.Adam Crews
2015-01-07(MODULES-1473) Deprecate type() function for new parserHunter Haugen
The `type()` function will cease to work on the new parser because 'type' is a reserved keyword. The `type3x()` function may be used to continue similar functionality, but will be deprecated in favor of the built-in typing system. The `type_of()` function has been included to introspect types in the new parser.
2015-01-02Merge pull request #336 from mklette/masterTravis Fields
ensure_resource: be more verbose in debug mode
2014-12-19Update docs to reflect new behavior of delete function taking array in ↵Travis Fields
second argument
2014-12-19MODULES-1606 add ability to pass array to delete for items to deleteTravis Fields
2014-12-18(MODULES-1582) Improve % detectionPeter Souter
Avoids any validate commands that have %'s in them other than "... % ..."
2014-12-18(MODULES-1582) Initial spike for % placeholderPeter Souter
This simply `gsub`'s the file path into where the % placeholder is.
2014-12-17Merge pull request #372 from ↵Morgan Haskel
poikilotherm/feature/master/validate_absolute_path_allow_arrays Allow array of pathes in validate_absolute_path
2014-12-17Merge pull request #368 from rfugina/basenameMorgan Haskel
Basename implementation
2014-12-17Added type checks for dirname(), and additional testsRob Fugina
2014-12-17Added basename() based on Ruby's File.basenameRob Fugina
Based on dirname code. Includes RSpec tests and docs.
2014-12-05Fixing ruby 1.8 support.Oliver Bertuch
2014-12-04Add new functions validate_numeric() and validate_integer().Oliver Bertuch
2014-12-04(MODULES-444) - Real meat of the changePeter Souter
This is the core change, we now go through the array and add it to the first element, instead of just two arguments.
2014-12-04(MODULES-444) Change argument restriction to < 2Peter Souter
2014-12-04(MODULES-444) Update docs with new functionalityPeter Souter
2014-11-25Allow array of pathes in validate_absolute_pathOliver Bertuch
2014-11-17Need to convert strings and fixnums to arraysMorgan Haskel
2014-11-13Merge pull request #319 from Spredzy/member_array_in_arrayHunter Haugen
(MODULES-1329) Allow member to look for array
2014-11-13Merge pull request #365 from dalen/range-integersHunter Haugen
Make the range function work with integers
2014-11-12(MODULES-1329) Allow member function to look for arrayYanis Guenane
Currently, the member function allows one to only find if a variable is part of an array. Sometimes it is useful to find if an array is part of a bigger array for validation purpose.
2014-11-12Make the range function work with integersErik Dalén
This is needed for the future parser which actually treats numbers as numbers and strings as strings. With this patch you can use range(1,5) instead of having to quote them like range('1','5').
2014-11-12(maint) Fix indentation of range functionErik Dalén
2014-11-10Fix breaking out of .each loopHunter Haugen
And some other small formatting fixes that don't belong in this patch.
2014-11-10Catch :undefined_variable thrown when Future Parser is enabled with 3.7.xTravis Fields
2014-11-10Merge pull request #354 from puppetlabs/4.3.xMorgan Haskel
4.3.x
2014-11-07Merge pull request #343 from zacharyalexstern/fix_to_bytesTravis Fields
Added correct converstions for PB and EB.
2014-11-04Merge pull request #350 from cyberious/modules1413Morgan Haskel
MODULES-1413 Add ability for member to take numeric objects
2014-11-04MODULES-1413 Ability to for future parser to use member with FixNum typesTravis Fields
2014-10-30Merge branch '4.3.x'Travis Fields
2014-10-29Fix validate_cmd, previous addition of SystemCallError only works for Puppet ↵Travis Fields
3.7, previous version throw different exception. Wrapping in generic Exception catch all
2014-10-29Merge remote-tracking branch 'origin/4.3.x'Travis Fields
2014-10-29Add proper exception catching of Windows errors when CreateProcess does not ↵Travis Fields
succeed
2014-10-28Merge remote-tracking branch 'origin/4.3.x' back to masterTravis Fields
2014-10-28Fix testcases for Future Parser and resolve issue with values_at in assuming ↵Travis Fields
that it was dealing with a string
2014-10-28Added correct converstions for PB and EB.Zachary Alex Stern
* We were converting Exabytes to bytes as Petabytes. * Updated tests to cover ever unit. * Added note that we're going by the old, inaccurate definitions of Kilobytes, Megabytes, etc, in that we treat them as powers of 2.
2014-10-24Merge branch '4.3.x', add tempfile back for resource validate_cmd and ↵Travis Fields
validate_augeas
2014-10-24add require 'tempfile' to resolve a previously autorequired resourceTravis Fields
2014-10-24Merge branch '4.3.x'Travis Fields
Conflicts: README.markdown lib/puppet/parser/functions/has_interface_with.rb
2014-10-10ensure_resource: be more verbose in debug modeMathias Klette
helps discovering duplication issues, especially when figthing boolean vs. string arguments
2014-10-09Merge pull request #262 from tremble/MODULES-707Morgan Haskel
Modules 707