- def svn_cat(url)
- unless @svn_responses[url]
- status, stdout, stderr = output_of_command("svn cat #{url}", {})
- handle_command_failures(status, "STDOUT: #{stdout}\nSTDERR: #{stderr}", :output_on_failure => true)
-
- @svn_responses[url] = stdout.force_encoding("UTF-8")
- end
-
- @svn_responses[url]
+ def api_get(url)
+ http_client = ::HTTPClient.new
+ http_client.ssl_config.set_trust_ca("/etc/ssl/certs/ca-certificates.crt")
+ @api_responses[url] ||= ::JSON.parse(http_client.get_content(url))