diff options
| -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 |
