summaryrefslogtreecommitdiff
path: root/chef/lib/chef/knife/cookbook_list.rb
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2010-04-19 21:45:30 +0200
committerDaniel DeLeo <dan@opscode.com>2010-05-01 10:00:18 -0700
commit3f686c1160ff83d80025cde6aad088b7007684e7 (patch)
treecf2c4146947b171abec9bc08fa002573d2bc793b /chef/lib/chef/knife/cookbook_list.rb
parent36b2259aff96e36ba12494887aa6ec4a49a031a3 (diff)
downloadchef-3f686c1160ff83d80025cde6aad088b7007684e7.tar.gz
Implement pluggable output formats for knife
You can now choose output formats for knife with the -f parameter. Initially, JSON and YAML are implemented.
Diffstat (limited to 'chef/lib/chef/knife/cookbook_list.rb')
-rw-r--r--chef/lib/chef/knife/cookbook_list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/knife/cookbook_list.rb b/chef/lib/chef/knife/cookbook_list.rb
index 1b19bfb7db..7e1599dd62 100644
--- a/chef/lib/chef/knife/cookbook_list.rb
+++ b/chef/lib/chef/knife/cookbook_list.rb
@@ -31,7 +31,7 @@ class Chef
:description => "Show corresponding URIs"
def run
- json_pretty_print(format_list_for_display(rest.get_rest('cookbooks')))
+ output(format_list_for_display(rest.get_rest('cookbooks')))
end
end
end