projects
/
puppet_common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9d8147
)
remove a crappy function
author
mh
<mh@immerda.ch>
Fri, 4 Mar 2016 22:34:17 +0000
(23:34 +0100)
committer
mh
<mh@immerda.ch>
Fri, 4 Mar 2016 22:34:17 +0000
(23:34 +0100)
lib/puppet/parser/functions/hostname.rb
[deleted file]
patch
|
blob
|
history
diff --git
a/lib/puppet/parser/functions/hostname.rb
b/lib/puppet/parser/functions/hostname.rb
deleted file mode 100644
(file)
index
7bc477f
..0000000
--- a/
lib/puppet/parser/functions/hostname.rb
+++ /dev/null
@@
-1,13
+0,0 @@
-# get an uniq array of ipaddresses for a hostname
-require 'resolv'
-
-module Puppet::Parser::Functions
- newfunction(:hostname, :type => :rvalue) do |args|
- res = Array.new
- Resolv::DNS.new.each_address(args[0]){ |addr|
- res << addr
- }
- res.uniq
- end
-end
-