class ChefCLI::PolicyfileServices::ShowPolicy::ReportPrinter
def h1(heading)
def h1(heading) ui.msg(heading) ui.msg("=" * heading.size) ui.msg("") end
def h2(heading)
def h2(heading) ui.msg(heading) ui.msg("-" * heading.size) ui.msg("") end
def initialize(ui)
def initialize(ui) @ui = ui end
def list(items)
def list(items) items.each { |item| ui.msg("* #{item}") } ui.msg("") end
def table_list(items)
def table_list(items) left_justify_size = items.keys.map(&:size).max.to_i + 2 items.each do |name, value| justified_name = "#{name}:".ljust(left_justify_size) ui.msg("* #{justified_name} #{value}") end ui.msg("") end