Method: AwsCftTools::Runbook#debug
- Defined in:
- lib/aws_cft_tools/runbook.rb
#debug(note = nil) ⇒ Object
Prints the given content to stdout if running in debug mode. Debug statements are output without any capture when running multiple threads.
147 148 149 150 |
# File 'lib/aws_cft_tools/runbook.rb', line 147 def debug(note = nil) return unless note && [:debug] @stdout.puts "DEBUG\nDEBUG " + note.split(/\n/).join("\nDEBUG ") + "\nDEBUG" end |