Module: Jets::Core::Config::Bootstrap::S3Bucket

Included in:
Jets::Core::Config::Bootstrap
Defined in:
lib/jets/core/config/bootstrap/s3_bucket.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#s3_bucketObject

Returns the value of attribute s3_bucket.



3
4
5
# File 'lib/jets/core/config/bootstrap/s3_bucket.rb', line 3

def s3_bucket
  @s3_bucket
end

Instance Method Details

#initializeObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/jets/core/config/bootstrap/s3_bucket.rb', line 5

def initialize(*)
  super

  @s3_bucket = ActiveSupport::OrderedOptions.new
  @s3_bucket.cors_configuration = {
    CorsRules: [{
      AllowedHeaders: ["*"],
      AllowedMethods: ["GET"],
      AllowedOrigins: ["*"],
      ExposedHeaders: []
    }]
  }
end