aboutsummaryrefslogtreecommitdiff
path: root/lib/leap_cli/commands/user.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-10-21 16:17:05 -0700
committerelijah <elijah@riseup.net>2012-10-21 16:17:05 -0700
commit94dd3b4d99a67679adcc3a9921f9e1fa78783cba (patch)
tree537e0a290801c2783ab24eb5c932c44c0c7f7c86 /lib/leap_cli/commands/user.rb
parent338b3d97b8cb0f5fca0339514ffdfaf30cc65498 (diff)
downloadleap_cli-94dd3b4d99a67679adcc3a9921f9e1fa78783cba.tar.gz
leap_cli-94dd3b4d99a67679adcc3a9921f9e1fa78783cba.tar.bz2
added command init-node
Diffstat (limited to 'lib/leap_cli/commands/user.rb')
-rw-r--r--lib/leap_cli/commands/user.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/leap_cli/commands/user.rb b/lib/leap_cli/commands/user.rb
index af59074..00c4b62 100644
--- a/lib/leap_cli/commands/user.rb
+++ b/lib/leap_cli/commands/user.rb
@@ -13,7 +13,7 @@ require 'gpgme'
module LeapCli
module Commands
- desc 'adds a new trusted sysadmin'
+ desc 'Adds a new trusted sysadmin'
arg_name '<username>', :optional => false, :multiple => false
command :'add-user' do |c|
@@ -47,11 +47,12 @@ module LeapCli
assert!(pgp_pub_key, 'Sorry, could not find OpenPGP public key.')
if ssh_pub_key
- write_file!(:user_ssh, username, ssh_pub_key)
+ write_file!([:user_ssh, username], ssh_pub_key)
end
if pgp_pub_key
- write_file!(:user_pgp, username, pgp_pub_key)
+ write_file!([:user_pgp, username], pgp_pub_key)
end
+
end
end