diff options
author | Ash McKenzie <ash@the-rebellion.net> | 2018-07-24 13:24:04 +1000 |
---|---|---|
committer | Ash McKenzie <ash@the-rebellion.net> | 2018-07-24 13:41:10 +1000 |
commit | d5c680a9541cbdf8c3c90cfb9a097b07410c6c33 (patch) | |
tree | d5930b50b1b3cd930ed6e4f4ba3758d7157b2960 /lib/git_access_status.rb | |
parent | 7c3100e7357316c76e5aec5af3d6d835f2e0ef58 (diff) | |
download | gitlab-shell-ash.mckenzie/git-push-ssh-proxy.tar.gz |
GitAccessStatus now extends AccessStatusash.mckenzie/git-push-ssh-proxy
Diffstat (limited to 'lib/git_access_status.rb')
-rw-r--r-- | lib/git_access_status.rb | 10 |
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 |