diff options
Diffstat (limited to 'lib/gitlab/verify/lfs_objects.rb')
-rw-r--r-- | lib/gitlab/verify/lfs_objects.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/gitlab/verify/lfs_objects.rb b/lib/gitlab/verify/lfs_objects.rb index fe51edbdeeb..d3f58a73ac7 100644 --- a/lib/gitlab/verify/lfs_objects.rb +++ b/lib/gitlab/verify/lfs_objects.rb @@ -11,10 +11,14 @@ module Gitlab private - def relation + def all_relation LfsObject.all end + def local?(lfs_object) + lfs_object.local_store? + end + def expected_checksum(lfs_object) lfs_object.oid end @@ -22,6 +26,10 @@ module Gitlab def actual_checksum(lfs_object) LfsObject.calculate_oid(lfs_object.file.path) end + + def remote_object_exists?(lfs_object) + lfs_object.file.file.exists? + end end end end |