summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2018-03-05 11:16:17 +0000
committerMicaƫl Bergeron <mbergeron@gitlab.com>2018-03-08 10:20:40 -0500
commitedbcde8877f497ea675fde811065679286a1aa56 (patch)
treebeefe40d469f06fc72f2513f73b336115b0f6144 /lib/tasks
parent2387ef2b4a9944749f0cd1db5c7e7f55f3745780 (diff)
downloadgitlab-ce-edbcde8877f497ea675fde811065679286a1aa56.tar.gz
[cherry-pick] '4862-verify-file-checksums'
See merge request gitlab-org/gitlab-ee!4753
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/lfs/check.rake8
-rw-r--r--lib/tasks/gitlab/lfs/migrate.rake (renamed from lib/tasks/gitlab/lfs.rake)0
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/lfs/check.rake b/lib/tasks/gitlab/lfs/check.rake
new file mode 100644
index 00000000000..869463d4e5d
--- /dev/null
+++ b/lib/tasks/gitlab/lfs/check.rake
@@ -0,0 +1,8 @@
+namespace :gitlab do
+ namespace :lfs do
+ desc 'GitLab | LFS | Check integrity of uploaded LFS objects'
+ task check: :environment do
+ Gitlab::Verify::RakeTask.run!(Gitlab::Verify::LfsObjects)
+ end
+ end
+end
diff --git a/lib/tasks/gitlab/lfs.rake b/lib/tasks/gitlab/lfs/migrate.rake
index a45e5ca91e0..a45e5ca91e0 100644
--- a/lib/tasks/gitlab/lfs.rake
+++ b/lib/tasks/gitlab/lfs/migrate.rake