summaryrefslogtreecommitdiff
path: root/bin/gitlab-keys
blob: 26d46cda159920522d3b9704a66a94b42f9e7283 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env ruby

require_relative '../lib/gitlab_init'

#
# GitLab Keys shell. Add/remove keys from ~/.ssh/authorized_keys
#
# Ex.
#   /bin/gitlab-keys add-key key-782 "ssh-rsa AAAAx321..."
#
#   /bin/gitlab-keys rm-key key-23 "ssh-rsa AAAAx321..."
#

require File.join(ROOT_PATH, 'lib', 'gitlab_keys')
GitlabKeys.new.exec

exit