# File lib/chef/knife/index_rebuild.rb, line 37defnagunlessconfig[:yes]
yea_or_nay = ask_question("This operation is destructive. Rebuilding the index may take some time. You sure? (yes/no): ")
unlessyea_or_nay=~/^y/puts"aborting"exit7endendend
run()click to toggle source
# File lib/chef/knife/index_rebuild.rb, line 32defrunnagoutputrest.post_rest("/search/reindex", {})
end