Class: Outliers::Resources::Aws::S3::BucketCollection
- Inherits:
-
Collection
- Object
- Collection
- Outliers::Resources::Aws::S3::BucketCollection
- Defined in:
- lib/outliers/resources/aws/s3/bucket_collection.rb
Instance Attribute Summary
Attributes inherited from Collection
Instance Method Summary collapse
Methods inherited from Collection
#each, #exclude_by_key, #filter, filters, #initialize, #key, #list, resource_class, #resource_class, to_human, #to_s, verifications, #verify
Methods included from Verifications::Shared
Constructor Details
This class inherits a constructor from Outliers::Collection
Instance Method Details
#load_all ⇒ Object
7 8 9 10 11 12 |
# File 'lib/outliers/resources/aws/s3/bucket_collection.rb', line 7 def load_all unless provider.credentials['region'] == 'us-east-1' raise Exceptions::UnsupportedRegion.new "Bucket verifications must target region us-east-1." end connect.buckets.map {|r| resource_class.new r} end |