gitlab-org--gitlab-foss/lib/tasks/gitlab/helpers.rake

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
302 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# Prevent StateMachine warnings from outputting during a cron task
StateMachines::Machine.ignore_method_conflicts = true if ENV['CRON']
task :gitlab_environment do
Rake::Task[:environment].invoke unless ENV['SKIP_RAILS_ENV_IN_RAKE']
extend SystemCheck::Helpers
end