Method: Gitlab::Lfs::Client#verify!
- Defined in:
- lib/gitlab/lfs/client.rb
#verify!(object, verify_action, authenticated:) ⇒ Object
67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/gitlab/lfs/client.rb', line 67 def verify!(object, verify_action, authenticated:) params = { body: object.to_json(only: [:oid, :size]), headers: build_request_headers(verify_action['header']) } url = set_basic_auth_and_extract_lfs_url!(params, verify_action['href']) rsp = Gitlab::HTTP.post(url, params) raise ObjectVerifyError.new(http_response: rsp) unless rsp.success? end |