Class: S3WebsiteDeploy::Configuration
- Inherits:
-
Object
- Object
- S3WebsiteDeploy::Configuration
- Defined in:
- lib/s3_website_deploy/configuration.rb
Instance Attribute Summary collapse
-
#bucket ⇒ Object
readonly
Returns the value of attribute bucket.
-
#cache_policy ⇒ Object
readonly
Returns the value of attribute cache_policy.
-
#dryrun ⇒ Object
readonly
Returns the value of attribute dryrun.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#region ⇒ Object
readonly
Returns the value of attribute region.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source:, region:, bucket:, prefix:, cache_policy:, dryrun:) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(source:, region:, bucket:, prefix:, cache_policy:, dryrun:) ⇒ Configuration
5 6 7 8 9 10 11 12 |
# File 'lib/s3_website_deploy/configuration.rb', line 5 def initialize(source:, region:, bucket:, prefix:, cache_policy:, dryrun:) @source = source @region = region @bucket = bucket @prefix = prefix @cache_policy = S3WebsiteDeploy::CachePolicy.new(cache_policy) @dryrun = dryrun end |
Instance Attribute Details
#bucket ⇒ Object (readonly)
Returns the value of attribute bucket.
3 4 5 |
# File 'lib/s3_website_deploy/configuration.rb', line 3 def bucket @bucket end |
#cache_policy ⇒ Object (readonly)
Returns the value of attribute cache_policy.
3 4 5 |
# File 'lib/s3_website_deploy/configuration.rb', line 3 def cache_policy @cache_policy end |
#dryrun ⇒ Object (readonly)
Returns the value of attribute dryrun.
3 4 5 |
# File 'lib/s3_website_deploy/configuration.rb', line 3 def dryrun @dryrun end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
3 4 5 |
# File 'lib/s3_website_deploy/configuration.rb', line 3 def prefix @prefix end |
#region ⇒ Object (readonly)
Returns the value of attribute region.
3 4 5 |
# File 'lib/s3_website_deploy/configuration.rb', line 3 def region @region end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
3 4 5 |
# File 'lib/s3_website_deploy/configuration.rb', line 3 def source @source end |