module RSpec::Storage::S3
Public Class Methods
handle_location(uri)
click to toggle source
# File lib/rspec/storage/s3.rb, line 15 def handle_location(uri) options = uri.query ? URI.decode_www_form(uri.query).map { |pair| pair.tap { |_p| _p[0] = _p[0].to_sym } }.to_h : {} client = Aws::S3::Client.new(options) FakeIO.new(Uploader.new(client, uri)) end