diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-11-20 13:18:19 +0100 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2013-11-20 13:21:51 +0100 |
commit | 559196cb27bc524db81e21ac4d890fd695961d14 (patch) | |
tree | 5d5f3549b3c3ccb083c0bc59375438967086eeae /lib/gitlab_keys.rb | |
parent | c67395e924496016a2ccec6eb0e4c42612f6d545 (diff) | |
download | gitlab-shell-559196cb27bc524db81e21ac4d890fd695961d14.tar.gz |
Fix return values in GitlabKeys
Diffstat (limited to 'lib/gitlab_keys.rb')
-rw-r--r-- | lib/gitlab_keys.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb index bc00867..0098578 100644 --- a/lib/gitlab_keys.rb +++ b/lib/gitlab_keys.rb @@ -31,6 +31,7 @@ class GitlabKeys $logger.info "Adding key #{@key_id} => #{@key.inspect}" auth_line = "command=\"#{ROOT_PATH}/bin/gitlab-shell #{@key_id}\",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty #{@key}" open(auth_file, 'a') { |file| file.puts(auth_line) } + true end def rm_key @@ -44,9 +45,11 @@ class GitlabKeys temp.close FileUtils.cp(temp.path, auth_file) end + true end def clear open(auth_file, 'w') { |file| file.puts '# Managed by gitlab-shell' } + true end end |