(path, parameters)
| 699 | end |
| 700 | |
| 701 | def build_api_url(path, parameters) |
| 702 | uri_string = "https://packages.apache.org/artifactory/api/#{path}" |
| 703 | unless parameters.empty? |
| 704 | uri_string << "?" |
| 705 | escaped_parameters = parameters.collect do |key, value| |
| 706 | "#{CGI.escape(key)}=#{CGI.escape(value)}" |
| 707 | end |
| 708 | uri_string << escaped_parameters.join("&") |
| 709 | end |
| 710 | URI(uri_string) |
| 711 | end |
| 712 | |
| 713 | def build_deployed_url(path) |
| 714 | uri_string = "https://packages.apache.org/artifactory/arrow" |