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

downtime_check.rake « tasks « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: afe5d42910c281140719c5f9809f003a8f5c56a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
desc 'Checks if migrations in a branch require downtime'
task downtime_check: :environment do
  if defined?(Gitlab::License)
    repo = 'gitlab-ee'
  else
    repo = 'gitlab-ce'
  end

  `git fetch https://gitlab.com/gitlab-org/#{repo}.git --depth 1`

  Rake::Task['gitlab:db:downtime_check'].invoke('FETCH_HEAD')
end