Class: S3WebsiteDeploy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/s3_website_deploy/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bucketObject (readonly)

Returns the value of attribute bucket.



3
4
5
# File 'lib/s3_website_deploy/configuration.rb', line 3

def bucket
  @bucket
end

#cache_policyObject (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

#dryrunObject (readonly)

Returns the value of attribute dryrun.



3
4
5
# File 'lib/s3_website_deploy/configuration.rb', line 3

def dryrun
  @dryrun
end

#prefixObject (readonly)

Returns the value of attribute prefix.



3
4
5
# File 'lib/s3_website_deploy/configuration.rb', line 3

def prefix
  @prefix
end

#regionObject (readonly)

Returns the value of attribute region.



3
4
5
# File 'lib/s3_website_deploy/configuration.rb', line 3

def region
  @region
end

#sourceObject (readonly)

Returns the value of attribute source.



3
4
5
# File 'lib/s3_website_deploy/configuration.rb', line 3

def source
  @source
end