Class: Moonshot::StackOutputPrinter
- Inherits:
-
Object
- Object
- Moonshot::StackOutputPrinter
- Defined in:
- lib/moonshot/stack_output_printer.rb
Overview
Display the stack outputs to the user.
Instance Method Summary collapse
-
#initialize(stack, table) ⇒ StackOutputPrinter
constructor
A new instance of StackOutputPrinter.
- #print ⇒ Object
Constructor Details
#initialize(stack, table) ⇒ StackOutputPrinter
Returns a new instance of StackOutputPrinter.
4 5 6 7 |
# File 'lib/moonshot/stack_output_printer.rb', line 4 def initialize(stack, table) @stack = stack @table = table end |
Instance Method Details
#print ⇒ Object
9 10 11 12 13 14 |
# File 'lib/moonshot/stack_output_printer.rb', line 9 def print o_table = @table.add_leaf('Stack Outputs') @stack.outputs.each do |k, v| o_table.add_line("#{k}: #{v}") end end |