- def svn_cat(url)
- unless @svn_responses[url]
- result = shell_out!("svn", "cat", url)
-
- @svn_responses[url] = result.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))