Class Chef::Formatters::Base
In: lib/chef/formatters/base.rb
Parent: EventDispatch::Base

Formatters::Base

Base class that all formatters should inherit from.

Methods

Included Modules

ErrorMapper

Attributes

err  [R] 
out  [R] 
output  [R] 

Public Class methods

Public Instance methods

Input: a Formatters::ErrorDescription object. Outputs error to SDOUT.

Generic callback for any attribute/library/lwrp/recipe file throwing an exception when loaded. Default behavior is to use CompileErrorInspector to print contextual info about the failure.

Generic callback for any attribute/library/lwrp/recipe file in a cookbook getting loaded. The per-filetype callbacks for file load are overriden so that they call this instead. This means that a subclass of Formatters::Base can implement file_loaded to do the same thing for every kind of file that Chef loads from a recipe instead of implementing all the per-filetype callbacks.

[Validate]