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
8bd29b09
Commit
8bd29b09
authored
Jul 26, 2018
by
Ash McKenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove GitAccessStatus as not required
parent
ecba183b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
29 deletions
+0
-29
lib/gitlab_access.rb
lib/gitlab_access.rb
+0
-1
lib/gitlab_access_status.rb
lib/gitlab_access_status.rb
+0
-28
No files found.
lib/gitlab_access.rb
View file @
8bd29b09
...
...
@@ -3,7 +3,6 @@ require 'json'
require_relative
'errors'
require_relative
'gitlab_init'
require_relative
'gitlab_net'
require_relative
'gitlab_access_status'
require_relative
'names_helper'
require_relative
'gitlab_metrics'
require_relative
'object_dirs_helper'
...
...
lib/gitlab_access_status.rb
deleted
100644 → 0
View file @
ecba183b
require
'json'
class
GitAccessStatus
attr_reader
:message
,
:gl_repository
,
:gl_username
,
:repository_path
,
:gitaly
def
initialize
(
status
,
message
,
gl_repository
:,
gl_username
:,
repository_path
:,
gitaly
:)
@status
=
status
@message
=
message
@gl_repository
=
gl_repository
@gl_username
=
gl_username
@repository_path
=
repository_path
@gitaly
=
gitaly
end
def
self
.
create_from_json
(
json
)
values
=
JSON
.
parse
(
json
)
new
(
values
[
"status"
],
values
[
"message"
],
gl_repository:
values
[
"gl_repository"
],
gl_username:
values
[
"gl_username"
],
repository_path:
values
[
"repository_path"
],
gitaly:
values
[
"gitaly"
])
end
def
allowed?
@status
end
end
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