diff options
author | Nick Thomas <nick@gitlab.com> | 2018-08-14 00:22:46 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-08-14 00:22:46 +0100 |
commit | c8bf2e7d47c3b8f34cb79847edcd5dd50b8f280e (patch) | |
tree | cc22dc6c91f58ccaadd97fdd816159de6ec8a135 /lib/action/git_lfs_authenticate.rb | |
parent | 764f6f47fa6a8698ae033532ae49875a87030518 (diff) | |
download | gitlab-shell-c8bf2e7d47c3b8f34cb79847edcd5dd50b8f280e.tar.gz |
Revert "Merge branch 'ash.mckenzie/srp-refactor' into 'master'"
This reverts commit 3aaf4751e09262c53544a1987f59b1308af9b6c1, reversing
changes made to c6577e0d75f51b017f2f332838b97c3ca5b497c0.
Diffstat (limited to 'lib/action/git_lfs_authenticate.rb')
-rw-r--r-- | lib/action/git_lfs_authenticate.rb | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/action/git_lfs_authenticate.rb b/lib/action/git_lfs_authenticate.rb deleted file mode 100644 index 8c5294d..0000000 --- a/lib/action/git_lfs_authenticate.rb +++ /dev/null @@ -1,26 +0,0 @@ -require_relative '../action' -require_relative '../gitlab_logger' - -module Action - class GitLFSAuthenticate < Base - def initialize(actor, repo_name) - @actor = actor - @repo_name = repo_name - end - - def execute(_, _) - GitlabMetrics.measure('lfs-authenticate') do - $logger.info('Processing LFS authentication', user: actor.log_username) - lfs_access = api.lfs_authenticate(actor, repo_name) - return unless lfs_access - - puts lfs_access.authentication_payload - end - true - end - - private - - attr_reader :actor, :repo_name - end -end |