Sha256: 762d98a21d4f3fc76020881df71e8c544785eb75b76fd759701949d3f5a49ea9
Contents?: true
Size: 598 Bytes
Versions: 2
Compression:
Stored size: 598 Bytes
Contents
require 'faraday' require 'json' module Fastlane module S3 class Client def upload_file(url, file) retry_options = { max: 2, interval: 0.05, interval_randomness: 0.5, backoff_factor: 2 } connection = Faraday.new( url ) do |conn| conn.request :retry, retry_options conn.request :multipart conn.response :raise_error conn.adapter :net_http end connection.put( '', File.read(file) ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fastlane-plugin-polidea-4.0.0 | lib/fastlane/plugin/polidea/helper/s3.rb |
fastlane-plugin-polidea-4.0.0.pre.3 | lib/fastlane/plugin/polidea/helper/s3.rb |