Method: ChefApply::UI::ErrorPrinter#format_footer

Defined in:
lib/chef_apply/ui/error_printer.rb


151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/chef_apply/ui/error_printer.rb', line 151

def format_footer
  if translation.log
    if translation.stack
      t.footer.both(ChefApply::Config.log.location,
        ChefApply::Config.stack_trace_path)
    else
      t.footer.log_only(ChefApply::Config.log.location)
    end
  else
    if translation.stack
      t.footer.stack_only
    else
      t.footer.neither
    end
  end
end