class KubeDeployTools::DeferredSummaryLogging::DeferredSummary

Attributes

paragraphs[R]

Public Class Methods

new() click to toggle source
# File lib/kube_deploy_tools/deferred_summary_logging.rb, line 57
def initialize
  @paragraphs = []
end

Public Instance Methods

add_paragraph(paragraph) click to toggle source

Adds a paragraph to be displayed in the summary section Paragraphs will be printed in the order they were added, separated by a blank line This can be used to log a block of data on a particular topic, e.g. debug info for a particular failed resource

# File lib/kube_deploy_tools/deferred_summary_logging.rb, line 64
def add_paragraph(paragraph)
  paragraphs << paragraph
end