mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-11 21:56:19 +10:00
Use a loop when enabling subtasks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user