Puppet Function: uri_host_from_string
- Defined in:
- lib/puppet/parser/functions/uri_host_from_string.rb
- Function type:
- Ruby 3.x API
Overview
Return a uri host from a string
4 5 6 7 8 9 10 11 12 |
# File 'lib/puppet/parser/functions/uri_host_from_string.rb', line 4 newfunction(:uri_host_from_string, :arity => 1, :type => :rvalue, :doc => <<-EOS Return a uri host from a string EOS ) do |args| uri = URI(args[0]) return uri.host end |