Module: Puppet::Module::Tool::Utils::URI
- Included in:
- Cache, Repository
- Defined in:
- lib/puppet/module/tool/utils/uri.rb
Instance Method Summary collapse
-
#normalize(url) ⇒ Object
Return a URI instance for the
uri
, a a string or URI object.
Instance Method Details
#normalize(url) ⇒ Object
Return a URI instance for the uri
, a a string or URI object.
8 9 10 11 12 |
# File 'lib/puppet/module/tool/utils/uri.rb', line 8 def normalize(url) return url.is_a?(::URI) ? url : ::URI.parse(url) end |