Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsh McKenzie <amckenzie@gitlab.com>2019-02-11 06:34:10 +0300
committerAsh McKenzie <amckenzie@gitlab.com>2019-02-11 07:49:36 +0300
commitc4f1e8ed1014d2dec07ad12bed398dfa5d2bc6e1 (patch)
treef3a7a4d11e8f6c01b8900c151752937e69ad292f /lib/gitlab/lfs_token.rb
parent9ab268b9c1bc028d50dee7c126878aa1df389cfe (diff)
Move LFS auth hash creation into GitLab::LfsToken
Diffstat (limited to 'lib/gitlab/lfs_token.rb')
-rw-r--r--lib/gitlab/lfs_token.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/gitlab/lfs_token.rb b/lib/gitlab/lfs_token.rb
index 26b81847d37..1193277bee5 100644
--- a/lib/gitlab/lfs_token.rb
+++ b/lib/gitlab/lfs_token.rb
@@ -47,6 +47,14 @@ module Gitlab
user? ? :lfs_token : :lfs_deploy_token
end
+ def for_gitlab_shell(repository_http_path)
+ {
+ username: actor_name,
+ lfs_token: token,
+ repository_http_path: repository_http_path
+ }
+ end
+
private # rubocop:disable Lint/UselessAccessModifier
class HMACToken