2021-02-05 07:09:31 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-29 13:21:25 -05:00
|
|
|
# Prevent StateMachine warnings from outputting during a cron task
|
|
|
|
StateMachines::Machine.ignore_method_conflicts = true if ENV['CRON']
|
|
|
|
|
2021-06-17 05:09:53 -04:00
|
|
|
task :gitlab_environment do
|
|
|
|
Rake::Task[:environment].invoke unless ENV['SKIP_RAILS_ENV_IN_RAKE']
|
|
|
|
|
2017-08-08 10:20:16 -04:00
|
|
|
extend SystemCheck::Helpers
|
2016-11-29 13:21:25 -05:00
|
|
|
end
|