diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-07-25 13:37:51 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-07-25 22:01:14 +1000 |
commit | aadf5355479f560b3abe1cec6c8cde50a1e5bdeb (patch) | |
tree | 6aa6139adf5c1191d7f7b10996a563ee1f6618a7 /lib/gitlab_net.rb | |
parent | 319794918a90da5e68b4858c7fc29eff704b0c96 (diff) | |
download | gitlab-shell-aadf5355479f560b3abe1cec6c8cde50a1e5bdeb.tar.gz |
Move GL_PROTOCOL into GitlabNet
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 3 |
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 = { |