diff options
author | Zapata <zapata@xs4all.nl> | 2011-01-29 22:32:13 +0100 |
---|---|---|
committer | Zapata <zapata@xs4all.nl> | 2011-01-29 22:32:13 +0100 |
commit | ce02d9f01ca366be945caf286c0b77f8eaab24d1 (patch) | |
tree | 939c0488cf98bb519c2f8b0ae438e32faa51683e /lib/keyringer | |
parent | 6a9ba2257dfeccee61169c1e213515058eae2ba1 (diff) | |
download | keyringer-ce02d9f01ca366be945caf286c0b77f8eaab24d1.tar.gz keyringer-ce02d9f01ca366be945caf286c0b77f8eaab24d1.tar.bz2 |
more merging
Diffstat (limited to 'lib/keyringer')
-rw-r--r-- | lib/keyringer/actions/recipients.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/keyringer/actions/recipients.rb b/lib/keyringer/actions/recipients.rb index 16b5a88..c5f30ed 100644 --- a/lib/keyringer/actions/recipients.rb +++ b/lib/keyringer/actions/recipients.rb @@ -1,15 +1,15 @@ module Keyringer
+ module Actions
class Recipients
def execute
- subCommand = ARGV[2]
- parameters = ARGV[3..-1]
+ subCommand = $args[0]
recipients = Keyring::Recipients.new
if subCommand == "add"
- recipients.addRecipient(ARGV[3], ARGV[4])
+ recipients.addRecipient($args[1], $args[2])
elsif subCommand == "remove"
- recipients.removeRecipient(ARGV[3])
+ recipients.removeRecipient($args[1])
elsif subCommand == "list"
recipients.listRecipients().each() do |recipient|
puts("#{recipient.email} #{recipient.keySignature}")
@@ -21,4 +21,5 @@ module Keyringer return ""
end
end
+ end
end
|