Class: Cript::Store

Inherits:
PStore
  • Object
show all
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

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, options = {})
  @opt = options
  crypt_class = options.delete(:crypt_class) || Cript::Simple
  @crypt = crypt_class.new(options)
  thread_safe = !!options.delete(:thread_safe)
  super(file, thread_safe)
end

Instance Method Details

#inspectObject



28
29
30
# File 'lib/cript/store.rb', line 28

def inspect
  "#<#{self.class.name} path=#{path}>"
end