aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZapata <zapata@xs4all.nl>2011-01-29 22:32:13 +0100
committerZapata <zapata@xs4all.nl>2011-01-29 22:32:13 +0100
commitce02d9f01ca366be945caf286c0b77f8eaab24d1 (patch)
tree939c0488cf98bb519c2f8b0ae438e32faa51683e
parent6a9ba2257dfeccee61169c1e213515058eae2ba1 (diff)
downloadkeyringer-ce02d9f01ca366be945caf286c0b77f8eaab24d1.tar.gz
keyringer-ce02d9f01ca366be945caf286c0b77f8eaab24d1.tar.bz2
more merging
-rw-r--r--lib/keyringer/actions/recipients.rb9
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