Sha256: 9366e18a4abcd7eb707aa52c93e3811cfa0105a381ca64cbd5ecb1e795fe4252
Contents?: true
Size: 835 Bytes
Versions: 8
Compression:
Stored size: 835 Bytes
Contents
require 'faraday' require 'faraday_middleware' require 'typhoeus' require 'typhoeus/adapters/faraday' require 'faraday_curl' require 'cloud_formation/bridge/util' module CloudFormation module Bridge class HttpBridge class << self def put(url, data) connection = Faraday.new do |f| f.request :json f.request :curl, Util::LOGGER , :info f.request :retry, max: 2, interval: 0.05, interval_randomness: 0.5, backoff_factor: 2 f.response :raise_error f.response :json, content_type: /javascript|json/ f.adapter :typhoeus end response = connection.put(url, data, 'Content-Type' => '') Util::LOGGER.info("S3 response was #{response.inspect}") response end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems