summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/any2array_spec.rb
AgeCommit message (Collapse)Author
2014-05-07Add mode +x to spec .rb filesHunter Haugen
2013-04-03(#19998) Implement any2arrayAmos Shapira
This change is to implement a new function "any2array", which will take any argument or arguments and create an array which contains it. If the argument is a single array then it will be returned as-is. If the argument is a single hash then it will be converted into an array. Otherwise (if there are more than one argument, or the only argument is not an array or a hash) the function will return an array containing all the arguments.