diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-07-26 18:20:23 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-01 00:24:16 +1000 |
commit | 25e751e9eec5b5c685e1623fe3527235b75cd051 (patch) | |
tree | 4afb47a4d10f8a8d40f7ad651010efb229d04a18 /lib | |
parent | 7a2c47f2e1ba2baacfe0ad228898aa341055a141 (diff) | |
download | gitlab-shell-25e751e9eec5b5c685e1623fe3527235b75cd051.tar.gz |
Move HTTP related exceptions into HTTPHelper
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_net.rb | 3 | ||||
-rw-r--r-- | lib/http_helper.rb | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index f0696e3..4124440 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -12,9 +12,6 @@ require_relative 'http_helper' class GitlabNet # rubocop:disable Metrics/ClassLength include HTTPHelper - class ApiUnreachableError < StandardError; end - class NotFound < StandardError; end - CHECK_TIMEOUT = 5 GL_PROTOCOL = 'ssh'.freeze diff --git a/lib/http_helper.rb b/lib/http_helper.rb index 62d0c51..9d55b07 100644 --- a/lib/http_helper.rb +++ b/lib/http_helper.rb @@ -1,5 +1,7 @@ module HTTPHelper READ_TIMEOUT = 300 + class ApiUnreachableError < StandardError; end + class NotFound < StandardError; end protected |