summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/bool2str.rb
AgeCommit message (Collapse)Author
2017-03-01(MODULES-4473) join strings for i18n parserEric Putnam
This commit joins all strings that are split over two lines with a plus, backslash, or double less than so that our magical i18n parser can wave over the module and mark every ruby string with our i18n function.
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.