Method: Puppet::HTTP::Service#with_base_url
- Defined in:
- lib/puppet/http/service.rb
#with_base_url(path) ⇒ URI
Return the url with the given path encoded and appended
80 81 82 83 84 |
# File 'lib/puppet/http/service.rb', line 80 def with_base_url(path) u = @url.dup u.path += Puppet::Util.uri_encode(path) u end |