module AwsExtensions::S3::Types::Bucket

Public Instance Methods

location() click to toggle source

Public: Method that will request the location of the bucket. Used to monkey patch Aws::S3::Types::Bucket

# File lib/aws_extensions/s3/Bucket.rb, line 12
def location
  location = Cumulus::S3::client.get_bucket_location({bucket: name}).location_constraint
  if location == ""
    Cumulus::Configuration.instance.client[:region]
  else
    location
  end
end