summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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