lib/aws-sdk-resources/services/s3/bucket.rb in aws-sdk-resources-2.1.1 vs lib/aws-sdk-resources/services/s3/bucket.rb in aws-sdk-resources-2.1.2

- old
+ new

@@ -55,9 +55,16 @@ client.config.region, name, options) end + # @api private + def load + @data = client.list_buckets.buckets.find { |b| b.name == name } + raise "unable to load bucket #{name}" if @data.nil? + self + end + private def dns_compatible?(scheme) Plugins::S3BucketDns.dns_compatible?(name, scheme == 'https') end