Skip to content
Snippets Groups Projects
Commit 79f60e2b authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Move Gitlab::Auth.Result to separate file

parent abcc0ba5
No related branches found
No related tags found
No related merge requests found
module Gitlab
module Auth
Result = Struct.new(:actor, :project, :type, :authentication_abilities) do
def ci?
type == :ci
end
def lfs_deploy_token?
type == :lfs_deploy_token
end
def success?
actor.present? || type == :ci
end
end
class MissingPersonalTokenError < StandardError; end
 
class << self
Loading
Loading
module Gitlab
module Auth
Result = Struct.new(:actor, :project, :type, :authentication_abilities) do
def ci?
type == :ci
end
def lfs_deploy_token?
type == :lfs_deploy_token
end
def success?
actor.present? || type == :ci
end
end
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment