Module: S3Lib

Defined in:
lib/service.rb,
lib/s3_errors.rb,
lib/acl_access.rb,
lib/bucket_find.rb,
lib/service_dev.rb,
lib/bucket_create.rb,
lib/s3_authenticator.rb,
lib/put_with_curl_test.rb,
lib/s3_authenticator_dev.rb,
lib/s3_authenticator_dev_private.rb

Defined Under Namespace

Modules: AclAccess Classes: AuthenticatedRequest, BadGrantTypeError, Bucket, BucketNotEmptyError, BucketNotFoundError, MalformedACLError, NoContentError, NotYourBucketError, ObjectAccessForbidden, ObjectDoesNotExist, S3ResponseError, Service

Class Method Summary collapse

Class Method Details

.request(verb, request_path, headers = {}) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/s3_authenticator.rb', line 33

def self.request(verb, request_path, headers = {})
  begin
    s3requester = AuthenticatedRequest.new()
    req = s3requester.make_authenticated_request(verb, request_path, headers)
  rescue OpenURI::HTTPError=> e
    raise S3Lib::S3ResponseError.new(e.message, e.io, s3requester)
  end
end