Class: Storage::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/storage/config.rb

Class Attribute Summary collapse

Class Attribute Details

.access_keyObject

Set the S3 access key.



20
21
22
# File 'lib/storage/config.rb', line 20

def access_key
  @access_key
end

.bucketObject

Set the S3 default bucket.



17
18
19
# File 'lib/storage/config.rb', line 17

def bucket
  @bucket
end

.pathObject

Set the FileSystem storage path.



26
27
28
# File 'lib/storage/config.rb', line 26

def path
  @path
end

.secret_keyObject

Set the S3 secret key



23
24
25
# File 'lib/storage/config.rb', line 23

def secret_key
  @secret_key
end

.strategyObject

Set a storage strategy based on its registered name.

Storage::Config.strategy = :s3


8
9
10
# File 'lib/storage/config.rb', line 8

def strategy
  @strategy
end

.strategy_classObject

Set a storage class.

Storage::Config.strategy_class = Storage::Strategies::S3


14
15
16
# File 'lib/storage/config.rb', line 14

def strategy_class
  @strategy_class
end