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 puppetlabs/stdlib module
[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
c3fad78
..
c479dfb
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
@@
-1,5
+1,8
@@
+#
+# validate_domain_name.rb
+#
module Puppet::Parser::Functions
module Puppet::Parser::Functions
- newfunction(:validate_domain_name, :doc => <<-
ENDHERE
DOC
+ newfunction(:validate_domain_name, :doc => <<-DOC
Validate that all values passed are syntactically correct domain names.
Fail compilation if any value fails this check.
Validate that all values passed are syntactically correct domain names.
Fail compilation if any value fails this check.
@@
-17,8
+20,8
@@
module Puppet::Parser::Functions
validate_domain_name('-foo.example.com')
validate_domain_name('www.example.2com')
validate_domain_name('-foo.example.com')
validate_domain_name('www.example.2com')
-
ENDHERE
DOC
- ) do |args|
+ DOC
+
) do |args|
rescuable_exceptions = [ArgumentError]
rescuable_exceptions = [ArgumentError]