summaryrefslogtreecommitdiff
path: root/bin/gitlab-keys
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-03 21:35:29 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-03 21:35:29 +0200
commitc6fa7e5e86d7fdb5fcba88bdb8a4f506aabd3305 (patch)
treec751f1b6a31dae6578f479e8e186638860f4efc3 /bin/gitlab-keys
parentb83ab386abc1b1591e7f9afa3d5d5b6cc1f5ae50 (diff)
downloadgitlab-shell-c6fa7e5e86d7fdb5fcba88bdb8a4f506aabd3305.tar.gz
add/remove keys to authorized_keys
Diffstat (limited to 'bin/gitlab-keys')
-rwxr-xr-xbin/gitlab-keys14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/gitlab-keys b/bin/gitlab-keys
new file mode 100755
index 0000000..6a297c4
--- /dev/null
+++ b/bin/gitlab-keys
@@ -0,0 +1,14 @@
+#!/usr/bin/env ruby
+
+#
+# GitLab Keys shell. Add/remove keys from ~/.ssh/authorized_keys
+#
+# Ex.
+# /bin/gitlab-keys add-key dzaporozhets "ssh-rsa AAAAx321..."
+#
+#
+ROOT_PATH = File.join(File.expand_path(File.dirname(__FILE__)), "..")
+require File.join(ROOT_PATH, 'lib', 'gitlab_keys')
+GitlabKeys.new.exec
+
+exit