Module: Gitlab::LfsToken::LfsTokenHelper

Included in:
Gitlab::LfsToken, HMACToken
Defined in:
lib/gitlab/lfs_token.rb

Instance Method Summary collapse

Instance Method Details

#actor_nameObject


10
11
12
# File 'lib/gitlab/lfs_token.rb', line 10

def actor_name
  user? ? actor.username : "lfs+deploy-key-#{actor.id}"
end

#user?Boolean

Returns:

  • (Boolean)

6
7
8
# File 'lib/gitlab/lfs_token.rb', line 6

def user?
  actor.is_a?(User)
end