summaryrefslogtreecommitdiff
path: root/lib/chef/knife/search.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/search.rb
parent1e2dd728f8d9ad724aa2980d5fb15c2e26d6bed8 (diff)
downloadchef-4133160972a9972a9a062579504faa40eaa4c8db.tar.gz
multi attribute return
Diffstat (limited to 'lib/chef/knife/search.rb')
-rw-r--r--lib/chef/knife/search.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/chef/knife/search.rb b/lib/chef/knife/search.rb
index 0d348d978a..eefde52395 100644
--- a/lib/chef/knife/search.rb
+++ b/lib/chef/knife/search.rb
@@ -23,6 +23,8 @@ class Chef
class Knife
class Search < Knife
+ include Knife::Core::MultiAttributeRetrunOption
+
deps do
require 'chef/node'
require 'chef/environment'
@@ -54,11 +56,6 @@ class Chef
:default => 1000,
:proc => lambda { |i| i.to_i }
- option :attribute,
- :short => "-a ATTR",
- :long => "--attribute ATTR",
- :description => "Show only one attribute"
-
option :run_list,
:short => "-r",
:long => "--run-list",