summaryrefslogtreecommitdiff
path: root/lib/gitlab_keys.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 09:52:10 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-05 09:52:10 +0200
commitea6ea902bea6857d2a0dbdf6d5492105a527d276 (patch)
tree7e49eae43ce42b10c3df61ed7ae8e63884700523 /lib/gitlab_keys.rb
parent8d37428444f255a79ed99cb7726977b7195c6ebb (diff)
downloadgitlab-shell-ea6ea902bea6857d2a0dbdf6d5492105a527d276.tar.gz
More tests
Diffstat (limited to 'lib/gitlab_keys.rb')
-rw-r--r--lib/gitlab_keys.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb
index 7eae17c..1cbaffb 100644
--- a/lib/gitlab_keys.rb
+++ b/lib/gitlab_keys.rb
@@ -15,7 +15,6 @@ class GitlabKeys
case @command
when 'add-key'; add_key
when 'rm-key'; rm_key
- when 'rm-user'; rm_user
else
puts 'not allowed'
end
@@ -33,9 +32,4 @@ class GitlabKeys
cmd = "sed '/#{@key}/d' #{auth_file}"
system(cmd)
end
-
- def rm_user
- cmd = "sed -i '/gitlab-shell #{@username},/d' #{auth_file}"
- system(cmd)
- end
end