Class: PuppetLibrary::Http::Url
- Inherits:
-
Object
- Object
- PuppetLibrary::Http::Url
- Defined in:
- lib/puppet_library/http/url.rb
Class Method Summary collapse
Class Method Details
.normalize(uri_string) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/puppet_library/http/url.rb', line 20 def self.normalize(uri_string) unless uri_string =~ /^https?/ uri_string = "http://#{uri_string}" end uri_string.sub /\/$/, "" end |