# File lib/chef/knife/configure.rb, line 108 def ask_user_for_config_path config[:config_file] ||= ask_question("Where should I put the config file? ", :default => '~/.chef/knife.rb') # have to use expand path to expand the tilde character to the user's home config[:config_file] = File.expand_path(config[:config_file]) if File.exists?(config[:config_file]) confirm("Overwrite #{config[:config_file]}") end end