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
1 changed files with 2 additions and 0 deletions

View File

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