Module: Chef::Knife::Core::NodeFormattingOptions
Overview
This module may be included into a knife subcommand class to automatically add configuration options used by the NodePresenter
Class Method Summary collapse
-
.included(includer) ⇒ Object
:nodoc: Would prefer to do this in a rational way, but can’t be done b/c of Mixlib::CLI’s design :(.
Class Method Details
.included(includer) ⇒ Object
:nodoc: Would prefer to do this in a rational way, but can’t be done b/c of Mixlib::CLI’s design :(
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/chef/knife/core/node_presenter.rb', line 32 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 |