Class: Cript::Store
- Inherits:
-
PStore
- Object
- PStore
- Cript::Store
- Defined in:
- lib/cript/store.rb
Overview
Cript::Store provides the same functionality as PStore, except it encrypts its data store on the file system.
Instance Method Summary collapse
-
#initialize(file, options = {}) ⇒ Store
constructor
public_key_path private_key_path.
- #inspect ⇒ Object
Constructor Details
#initialize(file, options = {}) ⇒ Store
public_key_path private_key_path
public_key_content public_key_path
passphrase thread_safe
20 21 22 23 24 25 26 |
# File 'lib/cript/store.rb', line 20 def initialize(file, = {}) @opt = crypt_class = .delete(:crypt_class) || Cript::Simple @crypt = crypt_class.new() thread_safe = !!.delete(:thread_safe) super(file, thread_safe) end |
Instance Method Details
#inspect ⇒ Object
28 29 30 |
# File 'lib/cript/store.rb', line 28 def inspect "#<#{self.class.name} path=#{path}>" end |