diff options
author | elijah <elijah@riseup.net> | 2012-11-13 22:49:32 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-11-13 22:49:32 -0800 |
commit | 10bd0ba9d66a32cb8e0f7fb322843005b23181b7 (patch) | |
tree | 5768b4fc787b189b5df9035596d7de945342852f /lib/leap_cli/commands/user.rb | |
parent | 622236c3ad6abc4aef200cc2d4fc2a09effd8647 (diff) |
cleaned up logging, and much improved error message when file is not found
Diffstat (limited to 'lib/leap_cli/commands/user.rb')
-rw-r--r-- | lib/leap_cli/commands/user.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/user.rb b/lib/leap_cli/commands/user.rb index 22ed9c9..aed29b7 100644 --- a/lib/leap_cli/commands/user.rb +++ b/lib/leap_cli/commands/user.rb @@ -94,7 +94,7 @@ module LeapCli def pick_pgp_key secret_keys = GPGME::Key.find(:secret) if secret_keys.empty? - progress("Skipping OpenPGP setup because I could not find any OpenPGP keys for you") + log "Skipping OpenPGP setup because I could not find any OpenPGP keys for you" return nil end @@ -126,7 +126,7 @@ module LeapCli buffer << " " buffer << ssh_key buffer << " " - buffer << relative_path(keyfile) + buffer << Path.relative_path(keyfile) buffer << "\n" end write_file!(:authorized_keys, buffer.string) |