Explain why we create a StringIO
This commit is contained in:
parent
7c54c63ac1
commit
458f8c1f80
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue