Memoize GitlabShellAdapter for performance and ease of testing
Port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/3463#note_47990536
This commit is contained in:
parent
9a8f094e34
commit
f80654c4e1
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
module Gitlab
|
module Gitlab
|
||||||
module ShellAdapter
|
module ShellAdapter
|
||||||
def gitlab_shell
|
def gitlab_shell
|
||||||
Gitlab::Shell.new
|
@gitlab_shell ||= Gitlab::Shell.new
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue