Method: AutoRemoteRequest.validate_url
- Defined in:
- lib/autoremote/net.rb
.validate_url(url) ⇒ Object
19 20 21 22 23 |
# File 'lib/autoremote/net.rb', line 19 def self.validate_url(url) ## Add https:// to the url if not present url.prepend 'https://' unless url.match(/^https?:\/{2}/i) get(url) end |