aboutsummaryrefslogtreecommitdiff
path: root/lib/keyring/recipients.rb
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-27 21:39:28 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-02-27 21:39:28 -0300
commite00add2a401920b5c21db57b5a8b2bcd5ae427f6 (patch)
treeb8c5048bed65c12bea39d1b17a387a4f387c2ee0 /lib/keyring/recipients.rb
parentbcd9a028016c9b29533bc894796cdb0b7ea89ab0 (diff)
downloadkeyringer-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.rb10
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)