class OdaniaStaticPages::Config::Deploy::S3
Attributes
bucket_name_blue[R]
bucket_name_green[R]
logging_bucket[R]
profile[R]
region[R]
state_bucket[R]
Public Class Methods
new(bucket_name_green: 'odania-http-green', bucket_name_blue: 'odania-http-blue', logging_bucket: 'odania-logging', region: 'eu-central-1', state_bucket: 'odania-state', profile: nil, tags: {deployed_by: 'odania-static-pages'})
click to toggle source
# File lib/odania_static_pages/config/s3.rb, line 7 def initialize(bucket_name_green: 'odania-http-green', bucket_name_blue: 'odania-http-blue', logging_bucket: 'odania-logging', region: 'eu-central-1', state_bucket: 'odania-state', profile: nil, tags: {deployed_by: 'odania-static-pages'}) @bucket_name_green = bucket_name_green @bucket_name_blue = bucket_name_blue @logging_bucket = logging_bucket @state_bucket = state_bucket @region = region @profile = profile @tags = tags end
Public Instance Methods
to_h()
click to toggle source
# File lib/odania_static_pages/config/s3.rb, line 19 def to_h { bucket_name_green: @bucket_name_green, bucket_name_blue: @bucket_name_blue, logging_bucket: @logging_bucket, state_bucket: @state_bucket, region: @region, profile: @profile, tags: @tags.stringify_keys! }.stringify_keys! end