Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
25e751e9
Commit
25e751e9
authored
Jul 26, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move HTTP related exceptions into HTTPHelper
parent
7a2c47f2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
lib/gitlab_net.rb
lib/gitlab_net.rb
+0
-3
lib/http_helper.rb
lib/http_helper.rb
+2
-0
No files found.
lib/gitlab_net.rb
View file @
25e751e9
...
...
@@ -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
...
...
lib/http_helper.rb
View file @
25e751e9
module
HTTPHelper
READ_TIMEOUT
=
300
class
ApiUnreachableError
<
StandardError
;
end
class
NotFound
<
StandardError
;
end
protected
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment