]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(MODULES-905) Add bool2str() and camelcase() for string manipulation
authorRyan McKern <ryan.mckern@puppetlabs.com>
Tue, 13 May 2014 22:01:44 +0000 (15:01 -0700)
committerRyan McKern <ryan.mckern@puppetlabs.com>
Tue, 13 May 2014 22:46:40 +0000 (15:46 -0700)
commit42743614cb13541a2973f28251b1f79a33019d77
treef1a41270500152f5a07491058b11f3b04b2788c7
parent62e8c1d76902e6f22cb9f7b3abd43e757b4130a3
(MODULES-905) Add bool2str() and camelcase() for string manipulation

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.
lib/puppet/parser/functions/bool2str.rb [new file with mode: 0644]
lib/puppet/parser/functions/camelcase.rb [new file with mode: 0644]