summaryrefslogtreecommitdiff
path: root/lib/gitlab_net.rb
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2018-07-25 13:37:51 +1000
committerAsh McKenzie <amckenzie@gitlab.com>2018-07-25 22:01:14 +1000
commitaadf5355479f560b3abe1cec6c8cde50a1e5bdeb (patch)
tree6aa6139adf5c1191d7f7b10996a563ee1f6618a7 /lib/gitlab_net.rb
parent319794918a90da5e68b4858c7fc29eff704b0c96 (diff)
downloadgitlab-shell-aadf5355479f560b3abe1cec6c8cde50a1e5bdeb.tar.gz
Move GL_PROTOCOL into GitlabNet
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r--lib/gitlab_net.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb
index 6474781..f0987dd 100644
--- a/lib/gitlab_net.rb
+++ b/lib/gitlab_net.rb
@@ -9,8 +9,9 @@ class GitlabNet # rubocop:disable Metrics/ClassLength
include HTTPHelper
CHECK_TIMEOUT = 5
+ GL_PROTOCOL = 'ssh'.freeze
- def check_access(cmd, gl_repository, repo, actor, changes, protocol, env: {})
+ def check_access(cmd, gl_repository, repo, actor, changes, protocol = GL_PROTOCOL, env: {})
changes = changes.join("\n") unless changes.is_a?(String)
params = {