module JenkinsApi::UriHelper
Public Instance Methods
form_encode(string)
click to toggle source
Encode a string for using in the query part of an URL
# File lib/jenkins/builder/app.rb, line 15 def form_encode(string) URI.encode_www_form_component string.encode(Encoding::UTF_8) end
path_encode(path)
click to toggle source
Encode a string for use in the hiearchical part of an URL
# File lib/jenkins/builder/app.rb, line 21 def path_encode(path) CGI.escape(path.encode(Encoding::UTF_8)) end