Prevent StateMachine warnings from outputting during a cron task

[ci skip]

Closes #5931
This commit is contained in:
Robert Speicher 2016-01-15 17:47:28 -05:00
parent 8a028cf3a2
commit e8785ded1e

View file

@ -4,6 +4,9 @@ end
String.disable_colorization = true unless STDOUT.isatty
# Prevent StateMachine warnings from outputting during a cron task
StateMachines::Machine.ignore_method_conflicts = true if ENV['CRON']
namespace :gitlab do
# Ask if the user wants to continue