summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/bool2str.rb
AgeCommit message (Collapse)Author
2015-10-15add functionality to bool2str to return strings of your choice for a booleanMark McKinstry
2014-05-15(MODULES-905) Narrow the confinement in bool2strRyan McKern
Previously, bool2str() accepted a broad array of boolean values and bare strings, without any attempt to validate that the strings in any way resembled "true" or "false" (or any of the other values bool2num() accepts). This commit narrows the input confinement to TrueClass and FalseClass, which means that bool2str() will only interpolate strict boolean values now.
2014-05-13(MODULES-905) Add bool2str() and camelcase() for string manipulationRyan McKern
Python likes to have its constants Capitalized, and the capitalize function only understands strings... so I shave a yak. bool2str will convert a boolean to its equivalent string value, and camelcase extends on uppercase & downcase to convert an underscore delimited string into a camelcased string.