Skip to content

Commit

Permalink
Sort and format stack output printer (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
pingram3030 authored and askreet committed Feb 23, 2017
1 parent da48f3c commit 91bfc98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/moonshot/stack_output_printer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ def initialize(stack, table)

def print
o_table = @table.add_leaf('Stack Outputs')
@stack.outputs.each do |k, v|
o_table.add_line("#{k}: #{v}")
rows = @stack.outputs.sort.map do |key, value|
["#{key}:", value]
end
o_table.add_table(rows)
end
end
end

0 comments on commit 91bfc98

Please sign in to comment.