Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/shell_adapter.rb')
-rw-r--r--lib/gitlab/shell_adapter.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/gitlab/shell_adapter.rb b/lib/gitlab/shell_adapter.rb
new file mode 100644
index 00000000000..fbe2a7a0d72
--- /dev/null
+++ b/lib/gitlab/shell_adapter.rb
@@ -0,0 +1,11 @@
+# == GitLab Shell mixin
+#
+# Provide a shortcut to Gitlab::Shell instance by gitlab_shell
+#
+module Gitlab
+ module ShellAdapter
+ def gitlab_shell
+ Gitlab::Shell.new
+ end
+ end
+end