diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-08-30 13:37:09 -0500 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-09-06 12:11:17 -0500 |
commit | f53d09e1eb1323be9cd697813a6f47375c091f6a (patch) | |
tree | 42b1950e5a8f0a7d3f97cf37e1c279793fc7c30d /lib/gitlab_access_status.rb | |
parent | c16f7323bad61601df1ebe93475bd84aee532faf (diff) | |
download | gitlab-shell-f53d09e1eb1323be9cd697813a6f47375c091f6a.tar.gz |
Refactored LFS auth logic to use its own API endpoint.
Diffstat (limited to 'lib/gitlab_access_status.rb')
-rw-r--r-- | lib/gitlab_access_status.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/gitlab_access_status.rb b/lib/gitlab_access_status.rb index 1ae0528..7fb88be 100644 --- a/lib/gitlab_access_status.rb +++ b/lib/gitlab_access_status.rb @@ -1,18 +1,17 @@ require 'json' class GitAccessStatus - attr_reader :message, :repository_path, :repository_http_path + attr_reader :message, :repository_path - def initialize(status, message, repository_path, repository_http_path) + def initialize(status, message, repository_path) @status = status @message = message @repository_path = repository_path - @repository_http_path = repository_http_path end def self.create_from_json(json) values = JSON.parse(json) - self.new(values["status"], values["message"], values["repository_path"], values["repository_http_path"]) + self.new(values["status"], values["message"], values["repository_path"]) end def allowed? |