summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-08-29 21:34:22 +0000
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-08-29 21:34:22 +0000
commit34c2b6adf9966ac7ad9a9e699211a6074af13fbc (patch)
tree1325c567fbaec574402f55e653dec252c7eddcd1 /lib/tasks
parent170cb8bc1828b80019fa45e48bc37161973e7a0e (diff)
parent41d52bbfe9725a93013ea6b072efcdc16e591b14 (diff)
downloadgitlab-ce-34c2b6adf9966ac7ad9a9e699211a6074af13fbc.tar.gz
Merge branch 'security-personal-snippets' into 'master'
Add direct upload support for personal snippets See merge request gitlab/gitlabhq!3226
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/uploads/sanitize.rake6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tasks/gitlab/uploads/sanitize.rake b/lib/tasks/gitlab/uploads/sanitize.rake
index 12cf5302555..4f23a0a5d82 100644
--- a/lib/tasks/gitlab/uploads/sanitize.rake
+++ b/lib/tasks/gitlab/uploads/sanitize.rake
@@ -2,7 +2,7 @@ namespace :gitlab do
namespace :uploads do
namespace :sanitize do
desc 'GitLab | Uploads | Remove EXIF from images.'
- task :remove_exif, [:start_id, :stop_id, :dry_run, :sleep_time] => :environment do |task, args|
+ task :remove_exif, [:start_id, :stop_id, :dry_run, :sleep_time, :uploader, :since] => :environment do |task, args|
args.with_defaults(dry_run: 'true')
args.with_defaults(sleep_time: 0.3)
@@ -11,7 +11,9 @@ namespace :gitlab do
sanitizer = Gitlab::Sanitizers::Exif.new(logger: logger)
sanitizer.batch_clean(start_id: args.start_id, stop_id: args.stop_id,
dry_run: args.dry_run != 'false',
- sleep_time: args.sleep_time.to_f)
+ sleep_time: args.sleep_time.to_f,
+ uploader: args.uploader,
+ since: args.since)
end
end
end