Module: DefraRuby::Aws
- Defined in:
- lib/defra_ruby/aws.rb,
lib/defra_ruby/aws/bucket.rb,
lib/defra_ruby/aws/version.rb,
lib/defra_ruby/aws/response.rb,
lib/defra_ruby/aws/configuration.rb,
lib/defra_ruby/aws/services/bucket_loader_service.rb,
lib/defra_ruby/aws/services/presigned_url_service.rb,
lib/defra_ruby/aws/services/delete_file_from_bucket_service.rb,
lib/defra_ruby/aws/services/concerns/has_aws_bucket_configuration.rb
Defined Under Namespace
Modules: HasAwsBucketConfiguration Classes: Bucket, BucketLoaderService, Configuration, DeleteFileFromBucketService, PresignedUrlService, Response, UnsuccessfulOperation
Constant Summary collapse
- VERSION =
"0.2.0"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
15 16 17 |
# File 'lib/defra_ruby/aws.rb', line 15 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
17 18 19 20 21 22 |
# File 'lib/defra_ruby/aws.rb', line 17 def configure require "aws-sdk-s3" self.configuration ||= Configuration.new yield(configuration) end |
.get_bucket(bucket_name) ⇒ Object
24 25 26 27 28 |
# File 'lib/defra_ruby/aws.rb', line 24 def get_bucket(bucket_name) configuration.buckets.select do |bucket| bucket.bucket_name == bucket_name end.first end |