Class: BeamUp::Providers::AwsS3::Config
- Inherits:
-
Object
- Object
- BeamUp::Providers::AwsS3::Config
- Defined in:
- lib/beam_up/providers/aws_s3.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#bucket ⇒ Object
Returns the value of attribute bucket.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
11 12 13 |
# File 'lib/beam_up/providers/aws_s3.rb', line 11 def access_key @access_key end |
#bucket ⇒ Object
Returns the value of attribute bucket.
11 12 13 |
# File 'lib/beam_up/providers/aws_s3.rb', line 11 def bucket @bucket end |
#region ⇒ Object
Returns the value of attribute region.
11 12 13 |
# File 'lib/beam_up/providers/aws_s3.rb', line 11 def region @region end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
11 12 13 |
# File 'lib/beam_up/providers/aws_s3.rb', line 11 def secret_key @secret_key end |
#url ⇒ Object
Returns the value of attribute url.
11 12 13 |
# File 'lib/beam_up/providers/aws_s3.rb', line 11 def url @url end |
Class Method Details
.config_keys ⇒ Object
9 |
# File 'lib/beam_up/providers/aws_s3.rb', line 9 def self.config_keys = %w[access_key secret_key region bucket url] |
Instance Method Details
#validate! ⇒ Object
22 23 24 25 26 |
# File 'lib/beam_up/providers/aws_s3.rb', line 22 def validate! raise ConfigurationError, "Access key must be set" unless access_key raise ConfigurationError, "Secret key must be set" unless secret_key raise ConfigurationError, "Bucket must be set" unless bucket end |
#with(options) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/beam_up/providers/aws_s3.rb', line 13 def with() self.access_key = [:access_key] self.secret_key = [:secret_key] self.region = [:region] || "us-east-1" self.bucket = [:bucket] self.url = [:url] self end |