aboutsummaryrefslogtreecommitdiff
path: root/lib/keyring/recipients.rb
diff options
context:
space:
mode:
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)