diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-02-27 21:39:28 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-02-27 21:39:28 -0300 |
commit | e00add2a401920b5c21db57b5a8b2bcd5ae427f6 (patch) | |
tree | b8c5048bed65c12bea39d1b17a387a4f387c2ee0 /lib/keyring/recipients.rb | |
parent | bcd9a028016c9b29533bc894796cdb0b7ea89ab0 (diff) | |
download | keyringer-e00add2a401920b5c21db57b5a8b2bcd5ae427f6.tar.gz keyringer-e00add2a401920b5c21db57b5a8b2bcd5ae427f6.tar.bz2 |
Init: setting folder structure and initial commmit
Diffstat (limited to 'lib/keyring/recipients.rb')
-rw-r--r-- | lib/keyring/recipients.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/keyring/recipients.rb b/lib/keyring/recipients.rb index 338c93c..f3264ed 100644 --- a/lib/keyring/recipients.rb +++ b/lib/keyring/recipients.rb @@ -20,10 +20,14 @@ module Keyring
class Recipients
- def initialize
- path = UserConfig.instance.path
- @recipientsStore = Backend::RecipientsStore.new(path)
+ def initialize(path = nil)
+ if !path
+ path = UserConfig.instance.path
+ end
+ # Load backend and ensure that the file exists
+ @recipientsStore = Backend::RecipientsStore.new(path)
+ @recipientsStore.create()
end
def addRecipient(anEmail, aKeySignature)
|