Parent

Methods

Class/Module Index [+]

Quicksearch

Chef::Knife::IndexRebuild

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.