summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsh McKenzie <ash@the-rebellion.net>2018-07-24 13:24:04 +1000
committerAsh McKenzie <ash@the-rebellion.net>2018-07-24 13:41:10 +1000
commitd5c680a9541cbdf8c3c90cfb9a097b07410c6c33 (patch)
treed5930b50b1b3cd930ed6e4f4ba3758d7157b2960
parent7c3100e7357316c76e5aec5af3d6d835f2e0ef58 (diff)
downloadgitlab-shell-ash.mckenzie/git-push-ssh-proxy.tar.gz
GitAccessStatus now extends AccessStatusash.mckenzie/git-push-ssh-proxy
-rw-r--r--lib/git_access_status.rb10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/git_access_status.rb b/lib/git_access_status.rb
index d106e07..edd51ee 100644
--- a/lib/git_access_status.rb
+++ b/lib/git_access_status.rb
@@ -1,7 +1,9 @@
require 'json'
-class GitAccessStatus
- attr_reader :message, :gl_repository, :gl_username, :repository_path, :gitaly
+require_relative 'access_status'
+
+class GitAccessStatus < AccessStatus
+ attr_reader :gl_repository, :gl_username, :repository_path, :gitaly
def initialize(status, message, gl_repository: nil, gl_username: nil, repository_path: nil, gitaly: nil)
@status = status
@@ -21,8 +23,4 @@ class GitAccessStatus
repository_path: values["repository_path"],
gitaly: values["gitaly"])
end
-
- def allowed?
- @status
- end
end