From 8bd29b09cd57478a570d509ec1e9785381897495 Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Thu, 26 Jul 2018 19:06:47 +1000 Subject: Remove GitAccessStatus as not required --- lib/gitlab_access_status.rb | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 lib/gitlab_access_status.rb (limited to 'lib/gitlab_access_status.rb') 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 -- cgit v1.2.1