From c4f1e8ed1014d2dec07ad12bed398dfa5d2bc6e1 Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Mon, 11 Feb 2019 14:34:10 +1100 Subject: Move LFS auth hash creation into GitLab::LfsToken --- lib/gitlab/lfs_token.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/gitlab/lfs_token.rb') 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 -- cgit v1.2.1