Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/Rakefile')
-rw-r--r--qa/Rakefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/qa/Rakefile b/qa/Rakefile
index 9fc1ff2c0cf..d8b5d6d08d6 100644
--- a/qa/Rakefile
+++ b/qa/Rakefile
@@ -5,8 +5,9 @@ require_relative "qa"
Dir['tasks/*.rake'].each { |file| load file }
desc "Deletes subgroups within a provided group"
-task :delete_subgroups do
- QA::Tools::DeleteSubgroups.new.run
+task :delete_subgroups, [:delete_before] do |_, args|
+ args.with_defaults(delete_before: (Date.today - 3).to_s)
+ QA::Tools::DeleteSubgroups.new(delete_before: args[:delete_before]).run
end
desc "Initialize GitLab with an access token"
@@ -50,8 +51,9 @@ task :delete_test_ssh_keys, [:title_portion, :delete_before, :dry_run] do |_, ar
end
desc "Deletes projects directly under the provided group"
-task :delete_projects do
- QA::Tools::DeleteProjects.new.run
+task :delete_projects, [:delete_before] do |_, args|
+ args.with_defaults(delete_before: (Date.today - 3).to_s)
+ QA::Tools::DeleteProjects.new(delete_before: args[:delete_before]).run
end
desc "Deletes test users"