class Moonshot::StackOutputPrinter
Display the stack outputs to the user.
Public Class Methods
new(stack, table)
click to toggle source
# File lib/moonshot/stack_output_printer.rb, line 4 def initialize(stack, table) @stack = stack @table = table end
Public Instance Methods
print()
click to toggle source
# 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