summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-17 22:52:32 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-24 15:07:24 +0100
commit448817c4de965bf7286f33a3447937987a8864a1 (patch)
tree4429ddccab6ff9437950f449272dfdad7362d0b1 /config
parentad6d6232342558705c54ba70a94f9d7ddbd00f8c (diff)
downloadgitlab-ce-448817c4de965bf7286f33a3447937987a8864a1.tar.gz
Load public key in initializer.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/public_key.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/initializers/public_key.rb b/config/initializers/public_key.rb
new file mode 100644
index 00000000000..d27e6519d1c
--- /dev/null
+++ b/config/initializers/public_key.rb
@@ -0,0 +1,2 @@
+path = File.expand_path("~/.ssh/id_rsa.pub")
+Gitlab::BitbucketImport.public_key = File.read(path) if File.exist?(path) \ No newline at end of file