Class: TpCommon::FileStorage::Base

Inherits:
Object
  • Object
show all
Includes:
FogConnection, KeyProtector
Defined in:
lib/tp_common/file_storage/base.rb

Overview

Prepare connection, key protector, consts for working wilt s3 files

Constant Summary collapse

MAX_RETRIES =
3

Instance Method Summary collapse

Constructor Details

#initialize(directory_path = nil) ⇒ Base

Returns a new instance of Base.



14
15
16
# File 'lib/tp_common/file_storage/base.rb', line 14

def initialize(directory_path = nil)
  @directory_path = directory_path || TpCommon::FileStorage.configuration.default_bucket
end