Class: KubeDeployTools::DeferredSummaryLogging::DeferredSummary
- Defined in:
- lib/kube_deploy_tools/deferred_summary_logging.rb
Instance Attribute Summary collapse
-
#paragraphs ⇒ Object
readonly
Returns the value of attribute paragraphs.
Instance Method Summary collapse
-
#add_paragraph(paragraph) ⇒ Object
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.
-
#initialize ⇒ DeferredSummary
constructor
A new instance of DeferredSummary.
Constructor Details
#initialize ⇒ DeferredSummary
Returns a new instance of DeferredSummary.
57 58 59 |
# File 'lib/kube_deploy_tools/deferred_summary_logging.rb', line 57 def initialize @paragraphs = [] end |
Instance Attribute Details
#paragraphs ⇒ Object (readonly)
Returns the value of attribute paragraphs.
55 56 57 |
# File 'lib/kube_deploy_tools/deferred_summary_logging.rb', line 55 def paragraphs @paragraphs end |
Instance Method Details
#add_paragraph(paragraph) ⇒ Object
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
64 65 66 |
# File 'lib/kube_deploy_tools/deferred_summary_logging.rb', line 64 def add_paragraph(paragraph) paragraphs << paragraph end |