class Cript::Store

Cript::Store provides the same functionality as PStore, except it encrypts its data store on the file system.

Public Class Methods

insecure(file, opts = {}) click to toggle source
# File lib/cript/store.rb, line 27
def self.insecure(file, opts = {})
  new(file, opts.merge({ private_key_content: INSECURE_PRIVATE_KEY }))
end
new(file, opts = {}) click to toggle source

public_key_path private_key_path

public_key_content public_key_path

passphrase thread_safe

Calls superclass method
# File lib/cript/store.rb, line 20
def initialize(file, opts = {})
  @opts = opts
  @cript = Cript::Simple.new(@opts)
  thread_safe = !!@opts.delete(:thread_safe)
  super(file, thread_safe)
end

Public Instance Methods

inspect() click to toggle source
# File lib/cript/store.rb, line 31
def inspect
  "#<#{self.class.name} path=#{path}>"
end