Method: ICFS::ConfigS3#initialize

Defined in:
lib/icfs/config_s3.rb

#initialize(defaults, s3, bucket, prefix = nil) ⇒ ConfigS3

New instance

Parameters:

  • defaults (Hash)

    The default options

  • s3 (Aws::S3::Client)

    the configured S3 client

  • bucket (String)

    The bucket name

  • prefix (String) (defaults to: nil)

    Prefix to use for object keys



32
33
34
35
36
37
# File 'lib/icfs/config_s3.rb', line 32

def initialize(defaults, s3, bucket, prefix=nil)
  super(defaults)
  @s3 = s3
  @bck = bucket
  @pre = prefix || ''
end