summaryrefslogtreecommitdiff
path: root/lib/git_host.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git_host.rb')
-rw-r--r--lib/git_host.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/git_host.rb b/lib/git_host.rb
new file mode 100644
index 00000000000..2410e0fec42
--- /dev/null
+++ b/lib/git_host.rb
@@ -0,0 +1,11 @@
+# == GitHost role
+#
+# Provide a shortcut to Gitlab::Gitolite instance
+#
+# Used by Project, UsersProject
+#
+module GitHost
+ def git_host
+ Gitlab::Gitolite.new
+ end
+end