Pretty output for run-log


#1

Hello,

For stages of a cookbook that takes a long time, i would like to warn the user that
how long it should take, So i have this in my code:

log ‘
log ’
Installing the 11204 binaries '
log ’
(30 minutes) '
log '

However in the output log it looks like this.

icc-179.usca.ibm.com * log[] action write
icc-179.usca.ibm.com
icc-179.usca.ibm.com * log[
Installing the 11204 binaries ] action write
icc-179.usca.ibm.com
icc-179.usca.ibm.com * log[
(30 minutes) ] action write
icc-179.usca.ibm.com
icc-179.usca.ibm.com * log[
] action write

Is there a way to suppress the empty line output of log? Is there a better way
to do this with chef/ruby?


#2

Yep!

Check out this example.