diff options
author | Anthony Goddard <goddardanthony@gmail.com> | 2011-05-20 22:21:13 -0400 |
---|---|---|
committer | Nuo Yan <nuo@opscode.com> | 2011-06-02 16:38:29 -0700 |
commit | ee2890e890811275758d61518951d535bb5bcb73 (patch) | |
tree | 07942b693d06ffb9376f18c9c5d949e817006772 /chef/lib/chef/knife.rb | |
parent | 1fbc7d28d640b4b683472b19f7b979f53f9ed4de (diff) | |
download | chef-ee2890e890811275758d61518951d535bb5bcb73.tar.gz |
bulk client delete list now consistent with node delete list (horizontal)
Diffstat (limited to 'chef/lib/chef/knife.rb')
-rw-r--r-- | chef/lib/chef/knife.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/chef/lib/chef/knife.rb b/chef/lib/chef/knife.rb index 0279549f12..351127e053 100644 --- a/chef/lib/chef/knife.rb +++ b/chef/lib/chef/knife.rb @@ -510,9 +510,11 @@ class Chef to_delete = object_list end - output(format_list_for_display(to_delete)) - - confirm("Do you really want to delete the above items") + ui.msg("The following clients will be deleted:") + ui.msg("") + ui.msg(ui.list(to_delete.keys.sort, :columns_down)) + ui.msg("") + ui.confirm("Are you sure you want to delete these clients") to_delete.each do |name, object| if Kernel.block_given? |