Explain why we create a StringIO

This commit is contained in:
Jacob Vosmaer 2014-11-20 15:54:39 +01:00
parent 7c54c63ac1
commit 458f8c1f80

View file

@ -79,6 +79,8 @@ namespace :gitlab do
def configure_cron_mode def configure_cron_mode
if ENV['CRON'] if ENV['CRON']
# We need an object we can say 'puts' and 'print' to; let's use a
# StringIO.
require 'stringio' require 'stringio'
$progress = StringIO.new $progress = StringIO.new
else else