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.

Parameters:

  • note (String) (defaults to: nil)

    a debug note



147
148
149
150
# File 'lib/aws_cft_tools/runbook.rb', line 147

def debug(note = nil)
  return unless note && options[:debug]
  @stdout.puts "DEBUG\nDEBUG  " + note.split(/\n/).join("\nDEBUG  ") + "\nDEBUG"
end