diff options
Diffstat (limited to 'lib/chef/formatters/base.rb')
-rw-r--r-- | lib/chef/formatters/base.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/chef/formatters/base.rb b/lib/chef/formatters/base.rb index 3a3e3336cc..a894655d74 100644 --- a/lib/chef/formatters/base.rb +++ b/lib/chef/formatters/base.rb @@ -24,12 +24,10 @@ require "chef/formatters/error_mapper" require "chef/formatters/indentable_output_stream" class Chef - # == Chef::Formatters # Formatters handle printing output about the progress/status of a chef # client run to the user's screen. module Formatters - class UnknownFormatter < StandardError; end def self.formatters_by_name @@ -60,7 +58,6 @@ class Chef # == Formatters::Base # Base class that all formatters should inherit from. class Base < EventDispatch::Base - include ErrorMapper def self.cli_name(name) @@ -212,7 +209,7 @@ class Chef file_load_failed(path, exception) end - def deprecation(message, location=caller(2..2)[0]) + def deprecation(message, location = caller(2..2)[0]) Chef::Log.deprecation("#{message} at #{location}") end @@ -221,18 +218,15 @@ class Chef end end - # == NullFormatter # Formatter that doesn't actually produce any output. You can use this to # disable the use of output formatters. class NullFormatter < Base - cli_name(:null) def is_formatter? false end end - end end |