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_domain_name.rb
diff --git
a/3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_domain_name.rb
b/3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_domain_name.rb
index
c479dfb
..
f3dc1d5
100644
(file)
--- a/
3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_domain_name.rb
+++ b/
3rdparty/modules/stdlib/lib/puppet/parser/functions/validate_domain_name.rb
@@
-3,23
+3,28
@@
#
module Puppet::Parser::Functions
newfunction(:validate_domain_name, :doc => <<-DOC
#
module Puppet::Parser::Functions
newfunction(:validate_domain_name, :doc => <<-DOC
- Validate that all values passed are syntactically correct domain names.
- Fail compilation if any value fails this check.
+ @summary
+ Validate that all values passed are syntactically correct domain names.
+ Fail compilation if any value fails this check.
- The following values will pass:
+ @return
+ passes when the given values are syntactically correct domain names or raise an error when they are not and fails compilation
- $my_domain_name = 'server.domain.tld'
- validate_domain_name($my_domain_name)
- validate_domain_name('domain.tld', 'puppet.com', $my_domain_name)
+ @example **Usage**
-
The following values will fail, causing compilation to abort
:
+
The following values will pass
:
- validate_domain_name(1)
- validate_domain_name(true)
- validate_domain_name('invalid domain')
- validate_domain_name('-foo.example.com')
- validate_domain_name('www.example.2com')
+ $my_domain_name = 'server.domain.tld'
+ validate_domain_name($my_domain_name)
+ validate_domain_name('domain.tld', 'puppet.com', $my_domain_name)
+ The following values will fail, causing compilation to abort:
+
+ validate_domain_name(1)
+ validate_domain_name(true)
+ validate_domain_name('invalid domain')
+ validate_domain_name('-foo.example.com')
+ validate_domain_name('www.example.2com')
DOC
) do |args|
DOC
) do |args|