summaryrefslogtreecommitdiff
path: root/lib/chef/knife/node_show.rb
diff options
context:
space:
mode:
authorRanjib Dey <ranjib@pagerduty.com>2013-04-11 20:54:22 -0700
committerBryan McLellan <btm@opscode.com>2013-05-24 10:27:03 -0700
commit4133160972a9972a9a062579504faa40eaa4c8db (patch)
treef74b21723c15cb0abc0420f16ef1ee50662e3120 /lib/chef/knife/node_show.rb
parent1e2dd728f8d9ad724aa2980d5fb15c2e26d6bed8 (diff)
downloadchef-4133160972a9972a9a062579504faa40eaa4c8db.tar.gz
multi attribute return
Diffstat (limited to 'lib/chef/knife/node_show.rb')
-rw-r--r--lib/chef/knife/node_show.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/chef/knife/node_show.rb b/lib/chef/knife/node_show.rb
index 4b0be18890..da2a5940ba 100644
--- a/lib/chef/knife/node_show.rb
+++ b/lib/chef/knife/node_show.rb
@@ -24,6 +24,7 @@ class Chef
class NodeShow < Knife
include Knife::Core::NodeFormattingOptions
+ include Knife::Core::MultiAttributeRetrunOption
deps do
require 'chef/node'
@@ -32,13 +33,6 @@ class Chef
banner "knife node show NODE (options)"
- @attrs_to_show = []
- option :attribute,
- :short => "-a [ATTR]",
- :long => "--attribute [ATTR]",
- :proc => lambda {|val| @attrs_to_show << val},
- :description => "Show one or more attributes"
-
option :run_list,
:short => "-r",
:long => "--run-list",