Class: TpCommon::FileStorage::Base
- Inherits:
-
Object
- Object
- TpCommon::FileStorage::Base
- Includes:
- FogConnection, KeyProtector
- Defined in:
- lib/tp_common/file_storage/base.rb
Overview
Prepare connection, key protector, consts for working wilt s3 files
Direct Known Subclasses
Cleaners::Cleaner, DirectUploaders::Public, Downloaders::Private, Uploaders::Private, Uploaders::Public
Constant Summary collapse
- MAX_RETRIES =
3
Instance Method Summary collapse
-
#initialize(directory_path = nil) ⇒ Base
constructor
A new instance of Base.
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 |