Use a loop when enabling subtasks
This commit is contained in:
parent
4612599e5e
commit
810ffab4b1
1 changed files with 3 additions and 3 deletions
|
@ -74,9 +74,9 @@ describe 'gitlab:app namespace rake task' do
|
|||
end
|
||||
|
||||
def reenable_backup_sub_tasks
|
||||
Rake::Task["gitlab:backup:db:create"].reenable
|
||||
Rake::Task["gitlab:backup:repo:create"].reenable
|
||||
Rake::Task["gitlab:backup:uploads:create"].reenable
|
||||
%w{db repo uploads}.each do |subtask|
|
||||
Rake::Task["gitlab:backup:#{subtask}:create"].reenable
|
||||
end
|
||||
end
|
||||
|
||||
before :all do
|
||||
|
|
Loading…
Reference in a new issue