gitlab-org--gitlab-foss/lib/tasks/downtime_check.rake
2017-02-23 09:32:42 -06:00

12 lines
339 B
Ruby

desc 'Checks if migrations in a branch require downtime'
task downtime_check: :environment do
repo = if defined?(Gitlab::License)
'gitlab-ee'
else
'gitlab-ce'
end
`git fetch https://gitlab.com/gitlab-org/#{repo}.git --depth 1`
Rake::Task['gitlab:db:downtime_check'].invoke('FETCH_HEAD')
end