Module: Boom::Storage
- Defined in:
- lib/kaboom/storage.rb,
lib/kaboom/storage/base.rb,
lib/kaboom/storage/gist.rb,
lib/kaboom/storage/json.rb,
lib/kaboom/storage/redis.rb,
lib/kaboom/storage/mongodb.rb,
lib/kaboom/storage/keychain.rb
Defined Under Namespace
Classes: Base, Gist, Json, Keychain, Mongodb, Redis
Class Method Summary
collapse
Class Method Details
.backend ⇒ Object
17
18
19
|
# File 'lib/kaboom/storage.rb', line 17
def self.backend
Boom::Storage.const_get(Boom.config.attributes['backend'].capitalize).new
end
|
.backend=(backend) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/kaboom/storage.rb', line 10
def self.backend=(backend)
backend = backend.capitalize
Boom::Storage.const_get(backend)
Boom.config.attributes['backend'] = backend.downcase
Boom.config.save
end
|