opscode/chef — pull request #1278 by esigler (2014-02-20 06:49:46+00:00)
Title: [CHEF-5057] Add default choice option to confirm prompt

This commit allows a default choice to be provided for a ui.confirm prompt. "-y" flag still takes precedence, and the previous behavior is preserved for existing code ("Y/N", no default choice).

Testing done:

bundle exec rake spec - passes
bundle exec rspec spec/unit/knife/core - passes