From 559196cb27bc524db81e21ac4d890fd695961d14 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Wed, 20 Nov 2013 13:18:19 +0100 Subject: Fix return values in GitlabKeys --- lib/gitlab_keys.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/gitlab_keys.rb') 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 -- cgit v1.2.1