diff options
author | Ash McKenzie <amckenzie@gitlab.com> | 2018-07-26 19:06:47 +1000 |
---|---|---|
committer | Ash McKenzie <amckenzie@gitlab.com> | 2018-08-01 00:24:16 +1000 |
commit | 8bd29b09cd57478a570d509ec1e9785381897495 (patch) | |
tree | 014e2acee6f10160f802441d9af944a30e2bb5f9 /lib/gitlab_access_status.rb | |
parent | ecba183b60eb0798ecf1736659ed7d0a995d0f01 (diff) | |
download | gitlab-shell-8bd29b09cd57478a570d509ec1e9785381897495.tar.gz |
Remove GitAccessStatus as not required
Diffstat (limited to 'lib/gitlab_access_status.rb')
-rw-r--r-- | lib/gitlab_access_status.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/gitlab_access_status.rb b/lib/gitlab_access_status.rb deleted file mode 100644 index 783bc0c..0000000 --- a/lib/gitlab_access_status.rb +++ /dev/null @@ -1,28 +0,0 @@ -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 |