projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib and concat to 6.1.0 both
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
lib
/
puppet
/
parser
/
functions
/
prefix.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/prefix.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/prefix.rb
index
f1e1234
..
b5e9641
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/prefix.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/prefix.rb
@@
-3,18
+3,19
@@
#
module Puppet::Parser::Functions
newfunction(:prefix, :type => :rvalue, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:prefix, :type => :rvalue, :doc => <<-DOC
- This function applies a prefix to all elements in an array or a hash.
+ @summary
+ This function applies a prefix to all elements in an array or a hash.
-
*Examples:
*
+
@example **Usage*
*
- prefix(['a','b','c'], 'p')
+ prefix(['a','b','c'], 'p')
+ Will return: ['pa','pb','pc']
- Will return: ['pa','pb','pc']
-
- Note that since Puppet 4.0.0 the general way to modify values is in array is by using the map
+ > *Note:* since Puppet 4.0.0 the general way to modify values is in array is by using the map
function in Puppet. This example does the same as the example above:
function in Puppet. This example does the same as the example above:
+ ['a', 'b', 'c'].map |$x| { "p${x}" }
- ['a', 'b', 'c'].map |$x| { "p${x}" }
+ @return [Hash] or [Array] The passed values now contains the passed prefix
DOC
) do |arguments|
DOC
) do |arguments|