diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-12-28 15:46:23 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-12-30 11:43:03 -0800 |
commit | c35cc213adc05ab2b3e7465dcdb33811fd2c17e7 (patch) | |
tree | 4fe78bb3e1e13eda86b026135b55ac67840490de /lib/chef/knife/core/status_presenter.rb | |
parent | fe478e21ab62de19804c43d04b337c9443779e79 (diff) | |
download | chef-c35cc213adc05ab2b3e7465dcdb33811fd2c17e7.tar.gz |
Move FormattingOptions to its own file and remove duplication.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef/knife/core/status_presenter.rb')
-rw-r--r-- | lib/chef/knife/core/status_presenter.rb | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/chef/knife/core/status_presenter.rb b/lib/chef/knife/core/status_presenter.rb index 9a4ea76508..215e79f33b 100644 --- a/lib/chef/knife/core/status_presenter.rb +++ b/lib/chef/knife/core/status_presenter.rb @@ -23,31 +23,6 @@ class Chef class Knife module Core - # This module may be included into a knife subcommand class to automatically - # add configuration options used by the StatusPresenter - module StatusFormattingOptions - # @private - # Would prefer to do this in a rational way, but can't be done b/c of - # Mixlib::CLI's design :( - def self.included(includer) - includer.class_eval do - option :medium_output, - short: "-m", - long: "--medium", - boolean: true, - default: false, - description: "Include normal attributes in the output" - - option :long_output, - short: "-l", - long: "--long", - boolean: true, - default: false, - description: "Include all attributes in the output" - end - end - end - # A customized presenter for Chef::Node objects. Supports variable-length # output formats for displaying node data class StatusPresenter < GenericPresenter |