Skip to content

Commit

Permalink
list cookbooks in columns when not showing the URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsdeleo committed Apr 13, 2011
1 parent 6229a4d commit b1b0484
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion chef/lib/chef/knife/cookbook_site_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,11 @@ class CookbookSiteList < Knife
:description => "Show corresponding URIs"

def run
output(format_list_for_display(get_cookbook_list))
if config[:with_uri]
ui.msg(format_list_for_display(get_cookbook_list))
else
ui.msg(ui.list(get_cookbook_list.keys.sort, :columns_down))
end
end

def get_cookbook_list(items=10, start=0, cookbook_collection={})
Expand Down

0 comments on commit b1b0484

Please sign in to comment.