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
/
validate_ipv4_address.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb
index
1ac303f
..
1f3223f
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_ipv4_address.rb
@@
-3,20
+3,24
@@
#
module Puppet::Parser::Functions
newfunction(:validate_ipv4_address, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:validate_ipv4_address, :doc => <<-DOC
- Validate that all values passed are valid IPv4 addresses.
- Fail compilation if any value fails this check.
+ @summary
+ Validate that all values passed are valid IPv4 addresses.
+ Fail compilation if any value fails this check.
- The following values will pass:
+ @return
+ passes when the given values are valid IPv4 addresses or raise an error when they are not and fails compilation
- $my_ip = "1.2.3.4"
- validate_ipv4_address($my_ip)
- validate_ipv4_address("8.8.8.8", "172.16.0.1", $my_ip)
+ @example **Usage**
+ The following values will pass:
- The following values will fail, causing compilation to abort:
+ $my_ip = "1.2.3.4"
+ validate_ipv4_address($my_ip)
+ validate_ipv4_address("8.8.8.8", "172.16.0.1", $my_ip)
- $some_array = [ 1, true, false, "garbage string", "3ffe:505:2" ]
- validate_ipv4_address($some_array)
+ The following values will fail, causing compilation to abort:
+ $some_array = [ 1, true, false, "garbage string", "3ffe:505:2" ]
+ validate_ipv4_address($some_array)
DOC
) do |args|
DOC
) do |args|