class GitLfsS3::UploadService::ObjectExists
Public Class Methods
should_handle?(req, object)
click to toggle source
# File lib/git-lfs-s3/services/upload/object_exists.rb, line 4 def self.should_handle?(req, object) object.exists? && object.size == req['size'] end
Public Instance Methods
response()
click to toggle source
# File lib/git-lfs-s3/services/upload/object_exists.rb, line 8 def response { '_links' => { 'download' => { 'href' => object.presigned_url(:get) } } } end
status()
click to toggle source
# File lib/git-lfs-s3/services/upload/object_exists.rb, line 18 def status 200 end