Sha256: f53b5336ad6e7e9d21dfc98dcde6b083080b8a7feee2ffd048d7993aa2f4633f
Contents?: true
Size: 709 Bytes
Versions: 44
Compression:
Stored size: 709 Bytes
Contents
module ForemanRhCloud module CloudRequest extend ActiveSupport::Concern def execute_cloud_request(params) final_params = { verify_ssl: ForemanRhCloud.verify_ssl_method, proxy: ForemanRhCloud.transformed_http_proxy_string(logger: logger), }.deep_merge(params) response = RestClient::Request.execute(final_params) logger.debug("Response headers for request url #{final_params[:url]} are: #{response.headers}") response rescue RestClient::Exception => ex logger.debug("Failed response with code #{ex.http_code} headers for request url #{final_params[:url]} are: #{ex.http_headers} and body: #{ex.http_body}") raise ex end end end
Version data entries
44 entries across 44 versions & 1 rubygems