]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Add join_keys_to_values function
authorJoshua Harlan Lifton <lifton@puppetlabs.com>
Tue, 20 Nov 2012 03:23:27 +0000 (19:23 -0800)
committerJeff McCune <jeff@puppetlabs.com>
Tue, 20 Nov 2012 21:16:03 +0000 (16:16 -0500)
commitee0f2b307d79f145d875d02d98e570fd3e7f156c
tree5b8e0e597e1fe77d1048a0bb98ef150235d98b6e
parent6c36b494a0f0e3001a46da9951fd52f343008042
Add join_keys_to_values function

This commit adds a function that joins each of a hash's keys with that
key's corresponding value, separated by a separator string. The
arguments are a hash and separator string. The return value is an
array of joined key/value pairs.
lib/puppet/parser/functions/join_keys_to_values.rb [new file with mode: 0644]
spec/unit/puppet/parser/functions/join_keys_to_values_spec.rb [new file with mode: 0644]