Module: AwsExtensions::S3::Types::Bucket
- Defined in:
- lib/aws_extensions/s3/Bucket.rb
Instance Method Summary collapse
-
#location ⇒ Object
Public: Method that will request the location of the bucket.
Instance Method Details
#location ⇒ Object
Public: Method that will request the location of the bucket. Used to monkey patch Aws::S3::Types::Bucket
12 13 14 15 16 17 18 19 |
# 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 |