summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2016-08-04 11:55:19 +0200
committerJacob Vosmaer <jacob@gitlab.com>2016-08-04 11:55:19 +0200
commit1ea542c0cf25a296786975035f629c0c8bc23e3b (patch)
tree8b1d13b00763926c58802e10a595b68017193d52 /bin
parentfb311531d042a629cb8558b2b4652fd30e9f35bc (diff)
downloadgitlab-shell-1ea542c0cf25a296786975035f629c0c8bc23e3b.tar.gz
Refactor 'GitlabKey' class awaysmall-fixes
It is not nice to have both 'GitlabKeys' and 'GitlabKey'. We also do not need GitlabKey to be a class when it has no state.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/authorized_keys2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/authorized_keys b/bin/authorized_keys
index 6aab4a5..ca01646 100755
--- a/bin/authorized_keys
+++ b/bin/authorized_keys
@@ -21,5 +21,5 @@ authorized_key = GitlabNet.new.authorized_key(key)
if authorized_key.nil?
puts "# No key was found for #{key}"
else
- puts GitlabKey.new.key_line("key-#{authorized_key['id']}", authorized_key["key"])
+ puts GitlabKeys.key_line("key-#{authorized_key['id']}", authorized_key["key"])
end