Class | Chef::Knife::Core::GenericPresenter |
In: |
lib/chef/knife/core/generic_presenter.rb
|
Parent: | Object |
The base presenter class for displaying structured data in knife commands. This is not an abstract base class, and it is suitable for displaying most kinds of objects that knife needs to display.
config | [R] | |
ui | [R] |
Instaniates a new GenericPresenter. This is generally handled by the Chef::Knife::UI object, though you need to match the signature of this method if you intend to use your own presenter instead.
Summarize the data. Defaults to text format output, which may not be very summary-like
Converts the data to a String in the text format. Uses Chef::Knife::Core::TextFormatter