diff options
author | Ranjib Dey <ranjib@pagerduty.com> | 2013-04-11 20:54:22 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-05-24 10:27:03 -0700 |
commit | 4133160972a9972a9a062579504faa40eaa4c8db (patch) | |
tree | f74b21723c15cb0abc0420f16ef1ee50662e3120 /lib/chef/knife/environment_show.rb | |
parent | 1e2dd728f8d9ad724aa2980d5fb15c2e26d6bed8 (diff) | |
download | chef-4133160972a9972a9a062579504faa40eaa4c8db.tar.gz |
multi attribute return
Diffstat (limited to 'lib/chef/knife/environment_show.rb')
-rw-r--r-- | lib/chef/knife/environment_show.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/chef/knife/environment_show.rb b/lib/chef/knife/environment_show.rb index a2b1636f47..2af5668990 100644 --- a/lib/chef/knife/environment_show.rb +++ b/lib/chef/knife/environment_show.rb @@ -22,18 +22,13 @@ class Chef class Knife class EnvironmentShow < Knife + include Knife::Core::MultiAttributeRetrunOption + deps do require 'chef/environment' require 'chef/json_compat' end - @attrs_to_show = [] - option :attribute, - :short => "-a [ATTR]", - :long => "--attribute [ATTR]", - :proc => lambda {|val| @attrs_to_show << val}, - :description => "Show one or more attributes" - banner "knife environment show ENVIRONMENT (options)" def run |